Why do we dream?
The short answer
The brain remains active during sleep, and its processing of memories and emotions may be experienced as dreams.
How it works
Dreams are more common in some sleep stages but can occur in others. Recent experiences may appear in them, but dreams are not necessarily predictions of the future.
A familiar example
Dream details are often forgotten as time passes after waking.