Carrot

The Carrot summons a pet Bunny when used. It grants the Pet Bunny buff that lasts until the player manually cancels it by right-clicking the buff's icon, or dies. The color of the bunny's fur is defined by the shirt color chosen for the character at the point of their creation.

It is only available to players who have purchased the Collector's Edition of Terraria &mdash; new characters created by them will spawn with it. While it can be traded, players who do not have the Collector's Edition will not be able to use it.

If you aren't able to access the Collector's Edition, if you follow this video, you can get the Pet Bunny without getting the Collector's Edition: http://www.youtube.com/watch?v=QSshpSAlSM0

History
carrots are gotten by chests and for geting a pet bunny