They are called graggers, and they serve to express our displeasure with the archenemy of the Jews, Haman. When his name is mentioned in the Megillah, we make noise and “stomp him out”.