Just as you charge the mobile and use its battery to work on mobile and once you use all the battery your mobile is dead. You need to charge it again to recover its battery.
Our body also needs some important things like breathing, food and sleeping to work properly mentally and physically, make proper decisions and in your daily life. Once you are empty and tired you need to recover you’re your energy to keep the work continues. Sleeping is one of the important things to balance your body with nature.
If you less charge your mobile battery you have to charge it again and again and if you overcharging the battery it starts swelling up. Same as with your body if less sleep or oversleep both are negative.