Occasionally, a quest will ask you to give away animals. Giving animals away works similarly to selling pets back to the in-game shop:
... and then use the "Sell/Give Away" button:
In the window that pops up, you'll be able to either sell the animal for Pet Cash, or give it away for experience points.