There are plenty of theories, but nobody really knows for sure, reports Scientific American.

While we don’t have a precise overarching definition of sleep’s function, it impacts different physiological and psychological purposes including cleaning up brain toxins and consolidating information into memory, so it is possible that each of these theories can be used to explain why we sleep; we just haven’t worked it out.