Sleep is essential for the proper functioning of the immune system. During sleep, the body produces proteins called cytokines, which help the body fight infections, illness, and stress. Children who do not get enough sleep are more susceptible to illnesses and infections.