As mentioned above, comes from the Biblical injunction not to "cast your pearls before swine." Pearls, of course, are considered to be things of great value, and swine (pigs) are often considered to be lowly animals.

Thus, the phrase translates as "Don't waste something valuable by giving it to someone who doesn't/can't appreciate it." This can apply to words/thoughts/wisdom as well as physical objects, and the expression is frequently used in a condescending fashion.

As for the comic, the title might ironically mean that Pig actually possesses the higher moral qualities that Rat is incapable of appreciating -- or even more ironically, that the things the artist is trying to communicate in the strip will be lost on the general public reading it.

e.g.
"I read that beautiful Shakespearean sonnet to her, but it was pearls before swine to such an illiterate person."

hillarious comic strip that revolves around two main characters .. 'pig ' and 'rat ' who are room mates. there are other characters who live in the same neighbourhood .. such as zeebra, the crocodile clan (the dumbest) and goat ( the wisest). ............
pig is humble , practical, kind and a little slow in the head.. and rat is , self-centered and quick-tempered, Rat is obsessed with fame, immortality and making a quick buck. Spends his time with Pig because it makes him feel superior and, more importantly, no one else will hang out with him...zebra is just trying to survive.. from the dumb crocs who are trying to kill him.. ...

the title of the strip ' pearls before swine ' comes from the New Testament, and is taken from the phrase, "Don't cast your pearls before swine."