Since October 31 was considered as a day that forms a thin line between the worlds of the living and the dead, allowing the dead to walk among the living. So, humans used to wear masks and costumes hoping ghosts mistake them for fellow spirits and wouldn’t harm them.