Peachey's two first sentences are right, but I think what's meant here is that one is not in bed, and then hops up in bed... to sleep. Thus 'in'. In = contained, under the sheets. On = surface. Sleep on the floor and in the bed, on the bench and in the water.