If you think about evolution, sleep, at some time, was a dangerous undertaking. You lie down in your cave or shelter, and along comes a predator and has you for dinner. Many creatures do not sleep or sleep while standing so they can escape from dangerous situations.