Considering how biologically damaging the state of wakefulness can often be, that is the true evolutionary puzzle here, not sleep. Adopt this perspective, and we can pose a very different theory: sleep was the first state of life on this planet, and it was from sleep that wakefulness emerged.