When we give the brain the rest it needs, we consolidate learning and recover from the experiences of the day.