Once given to the poor in exchange for prayers for the departed, this humble tradition lives on as the ancestor of trick-or-treating.