I’ve read a theory that people have nightmares to prepare you for the real life situations.
For example: when cavemen had nightmares it would probably be about being attacked by animals. So next time they would encounter something like that they already have some “experience”
Could be a reason why children have more nightmares than grown up people (based on what I hear and remember myself)
Latest Answers