To let us know if that's the moon or the sun we see in the sky.

Why do we need sleep?