When we sleep, we go through 5 stages, one of which being REM (rapid eye movement) sleep. In this, a growth hormone is release which repairs our body.
Also why babies sleep more than an average person, because they need this hormone to....grow.
REM is also the state where we dream,