Revonsuo (2000): Evolution's Fire Drill
Nightmares evolved as a survival mechanism — they simulate threatening scenarios so the brain can rehearse responses. Our ancestors who "practiced" escaping predators in dreams were better prepared to survive real threats. The nightmare is not the enemy; it is the training.
Evolutionary psychology