“Most scientists agree that one of the major purposes of sleep is to restore and heal the body. It has been observed that hormone and immune functions change during specific stages of the sleep cycle. Furthermore, some studies have shown that sleep deprivation can lead to deficiencies in the immune system. ”
“It has also been hypothesized that sleep offers important restoration to the brain. It is possible that neurons are restored, that brain proteins and certain hormones are produced. Some scientists believe that sleep is particularly important to the brains in young humans. Sleep deprivation in early life has led to decreased brain mass, permanent sleeping trouble, and behavioral problems. Although many scientists feel that the main function of sleep is not to restore or improve the capabilities of our memory, it has been observed that people have an easier time memorizing information if they have had adequate sleep than if they are sleep deprived.”
“A completely alternate theory to those described above is the “Preservation and Protection” theory of sleep. This theory asserts that human beings do not require the full 24 hour period within each day to satisfy basic needs such as collecting necessary food and supplies, eating, and reproducing. As not all 24 hours are required, sleep offers a time of rest when humans are not out in the elements, and therefore exposed to threats.”
Source