I haven't done this in a while, but heres how I see it

When the ball hits the floor, energy is released from the bounce which is why it does not bounce to its original height.