The atavistic fear of death appears to be hardwired into humanity, probably dating back the fist awakenings of sentience in early hominids. Animals either ignore or eat their dead (as some early humans seem to have done) but civilization brought ritualization of death and burial, and not surprisingly mythmaking about sentience after death.