I'm a certified sleep science coach who has tested over 50 mattresses. There are a list of theories that attempt to explain the purposes of dreaming that include memory retention and the idea that ...