I remember reading that ancient societies were afraid of dead people digging their way out, and running around all crazy - which led to using gravestones to help keep them beneath the earth. The people who were paid to watched over the graveyards would make up elaborate, scary stories, to maintain job security.