I believe you're trying to assign a design intent behind sleep. Nature doesn't need this. We sleep because it works better than not sleeping, and that's all there is to it.
I thought the question was more along the lines of, "why do these things that happen during sleep require us to be asleep and not just happen all the time?"