The Easter carrot is a holiday reward from the 2009 Easter event, handed out for completing it. When equipped, it lets you whack another player, making it look as though you struck them with the oversized carrot. It is purely cosmetic, no damage is dealt.
Much like the rubber chicken, hitting other players too many times causes you to fumble it and drop it automatically, with the message "You drop your carrot on the floor!" It can be picked up again from the ground, stored in a toy box in a player-owned house, and it has the usual wield, use, drop, and examine options.
The RuneScape Wiki is a great place to look up details like this. Hope it helps.