Sleeping is the most important time to shape memories and make the connections between events, feelings and experiences. In fact, sleep is a requirement to form new learning and memory pathways in the brain. Fight Infection. Sleep is your body's mechanism to ward off infection.