Halloween

Trick-or-treating evolved from “mumming” or “souling”.

An excerpt from the article 21 facts about Halloween
It was a Scottish and Irish medieval tradition for kids to dress up as ghosts and venture from house to house, performing tricks, songs, and poems in exchange for food and drink.