Copy Pasta from Wiki Setsubun (Bean-Throwing Festival or Bean-Throwing Ceremony) Roasted soybeans are thrown either out the door or at a member of the family wearing an Oni (demon or ogre) mask, while the throwers chant "Demons out! Luck in!"
The pigeon has an oni mask so that people will throw beans at it, supplying it with food.