system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: What is [currently] the most widely accepted scientific explanation for why we dream?

I've read a lot of different theories, but is there any one theory that is more widely accepted than others?
gpt
Generally, the one most accepted is that it is a way to sort out memories. The dreams create links in your brain for the new memories and attach the links to other memories so you can recall them in several ways. That is why you can get weird combinations in your dreams, like eating ice cream with a dinosaur on a pogo stick.