Sleep is not the same as rest. You can sleep without resting.