It's why hamsters are nocturnal. Their predators hunt during the day, so they sleep during the day and play at night.
Evolutionary theory would say the hamsters that like to play during the day got eaten so that only those who slept during the day got to mate and pass on their genes, etc.
If you think sleep is a drawback for humans, trying visiting a forest at night without a flashlight.