Drowsiness
When we are ill, many of us have to spend the day in bed. Even in the hospital, you are placed in a bed. It is arguably the most often given medication in the world for almost all conditions. So it makes perfect sense that getting sick frequently makes you sleepy.
Even if we don't fully comprehend the mechanisms underlying all that occurs while you're out at night, sleep is essential for survival. However, we do know that it gives your body the time it needs to repair any damage. Since you're not wasting time on waking activities when you're sick, sleeping is especially advantageous. Your body could be using the energy it uses to digest, think, and move when you are awake instead. Simply put, when you're asleep, your mending process is more effective.
According to research, specific nerve cells in worms emit neuropeptides when they are sick. These neuropeptides calm the worms' nervous system and induce sleep, so they can recover. It has been hypothesized that humans also go through a process like this.