The people who attended Samhain believed that the dead made their presence known during the festival, and that they must be appeased or else they would cause trouble and hardship for the townspeople.
FORBES: Are You or Someone You Know Samhainophobic?