Everyone is wondering how sleep serves life. Maybe it's the other way around: the purpose of being awake is to find nutrients and a safe place to enable sleeping.
I mean, that's a fun and trippy idea. But we're vessels for propagating genes. Can't do that while you're sleeping, so one would have to construct an exceedingly strange model of the universe to make sleeping central to our existence.