How does mental illness like depression cause someone to become physically fatigued and sleepy all the time?

Like literally 😴 all the time and anhedoia