Because sleep directly connect to your mind . When you take proper sleep your will restore and repair all of the things you put into it.Because our mind takes rest.