Although
sleep has been extensively studied in humans and animals, it is still a poorly understood phenomenon. Sleep involves extensive adjustments of
brain function, lowering of
body temperature and the buildup of certain substances in the
cerebrospinal fluid (
CSF) such as
serotonin.
Even less understood is the physical motivation behind the evolution of sleep (see: The teleological argument for sleep). An organism is more vulnerable while sleeping to predators, and it seems that there would be a strong selective pressure against falling asleep. So why did sleep evolve? Obviously for small endotherms (animals who need to produce body heat), the closer the body temperature is to the ambient temperature, the less energy they spend on heat generation. During periods of inactivity, reducing metabolism, especially at night helps save energy. For homeotherms, body temperature is maintained at all times. So what does sleep accomplish then? One theory relates evolution of sleep, particularly for mammals and birds, with evolution of the vertebrate brain.
The common ancestor to mammals and birds are reptiles. Most reptiles are strictly diurnal because they are poikilotherms - animals whose body temperature matches that of the environment. At night, when it is cooler, most reptiles enter a state of torpor. In the morning, sunlight brings warmth and initiates activity. This is often why lizards are described as sunning themselves on rocks. They are increasing their metabolic rate by absorbing solar heat. But torpor is different from mammalian sleep because it is directly linked to metabolism. Mammals can often nap at will and although they do adhere to circadian (night/day) rythms, are not limited to them. At night, reptiles do show behavioral signs of sleep including closed eyes, specific resting sites, specific resting body positions, etc ... During the day, reptiles may also sleep with the same behavior patterns, suggesting that sleep is encoded in reptillian neurophysiology.
Behaviorally, if reptillian sleep and mammalian sleep are similar, does this correspond to neurophysical behavior during periods of rest? Electroencephalograms (EEGs) of reptiles and other poikilotherms are apparently fraught with all kinds of technical problems including temperature effects and electrode placement effects, but it appears that levels of electrical brain activity go down significantly during sleep. Also, high voltage spikes are detected in the limbic region of reptiles, very similar to phenomena noted in mammals during Slow Wave Sleep (SWS). There are also reports of eye movement during reptile sleep (results are still highly disputed) suggesting a reptillian analog of REM (rapid eye movement) sleep.
At night, during the age of reptiles, only the biggest of animals would have enough thermal intertia to maintain activity in periods of lower temperature. As a result, the nights were generally free of vertebrate activity and predation wasn't a problem. With the advent of homeotherms such as birds and mammals, this restriction was no longer true. If mammalian sleep is a result of ancestral sleeping behavior in response to nighttime temperature changes, then the interesting question for homeotherms, where the body temperature remains constant is - how did mammals acquire the current sleep behavior?
The explanations in the literature now get rather sophisticated and speculative. It is believed that the first protomammals probably only had homeothermic regulation during the late night hours, in order to conserve energy. During the daytime, they used ambient temperature, just as poikilotherms did, to maintain body temperature. These creatures could now exploit this window of reptillian sleep in order to develop unhindered. However, in the absence of light, mammals needed to develop other senses such as hearing and smell in order to navigate the nighttime environs. Most reptiles are not neurologically capable of processing only one type of stimulus at a time. The protomammals would need to have heightened awareness in order to survive, which would require 'switching on' of cortical activity during the night time. During the daytime, only the reptillian brainstem activities for thermoregulation would be required. However, since low-grade, reptillian behavior would interfere with cortical activity at night, mammals found a way to downregulate it. (instances now of sleep walking are believed to be brainstem reptillian remnants of thermoregulation through behavior where this switch has malfunctioned.)
Ok, so sleep in mammals is derived from reptillian behavior of thermoregulation. REM sleep is akin to total reptillian torpor, where there is no endothermic process at all. SWS sleep is similar to daytime reptillian sleep where some behavioral remnants of primitive motion are retained. Still - why do we sleep?
Its interesting to note that as we get older, we sleep less and less. During early stages of our life, humans and other mammals are reared, giving some degree of protection. It has been found that reduction in the amount of REM sleep, especially at young ages, can impair brain development. So, it seems straightforward that increased sleep would help us develop the adult brain. The physiological correlation between REM sleep and brain development isn't known yet. It is known that sleep induces higher levels of serotonin and other factors in the CSF.
The nice thing about mammalian sleep is its reversability. If extreme predation is an issue, mammals may survive with less or no sleep for extended periods of time. In summary, sleep may have evolved as a remnant of reptillian responses to low temperatures at night. As a result, mammals developed heightened cortical functions at night to survive the nocturnal environment. Now, our brains grow best at night.
For an interesting review - see: "Why we sleep: the evolutionary pathway to the mammalian sleep" by MC Nicolau and colleagues in Progress in Neurobiology (2000), v62, p 379.
This and other resources within provide a comprehensive picture of the current understanding of sleep behavior and its relation to neurological development.