The main function of sleep is to improve the behavior of productivity. And animals as well as humans, deep sleep helps to better perform daily tasks. But that's what we mean by a deep sleep may be slightly different from the animals.
Here are some interesting facts about how animals sleep.