Step-by-step explanation:
Dreams as memory aids
One widely held theory about the purpose of dreams is that they help you store important memories and things you've learned, get rid of unimportant memories, and sort through complicated thoughts and feelings. Research shows that sleep helps store memories.