Entering a bed causes the player to bounce slightly. This can be seen best when there are some blocks next to the bed.
MC-187238 bounce while asleep
MC-149081 Entering a bed from a mount causes the player to bounce up and down