I think it wasn't. Halloween originated from a festival for the god of death, so it's hard to tell. But nowadays, I think it's mainly just supposed to be fun.
In the mid-1800s, immigrants from Europe brought their Halloween traditions to America but most of it focused on ghosts and witchcraft.
According to history.com, in the late 1800s, there was a move...