If I allow the ball to fall off the shelf back to the ground like this, then the stored gravitational potential energy is changed to other forms of energy, such as thermal energy and kinetic energy. The ball now has no gravitational potential energy.