- To turn short term memory into long term memory, to consolidate long term memory, and prepare the brain to learn new things.
- To clean the brain of harmful waste products (which is what this article says. By the way, it is old and from 2013).
- An evolutionary artifact of energy conservation in resource-low ecosystems.
Are there some other theories too?