Final answer:
Gravitational potential energy increases when an object is lifted higher or moves to a higher position due to gravity.
Step-by-step explanation:
Gravitational potential energy increases when an object is lifted higher or moves to a higher position due to gravity. In this scenario, the elevator going from the 4th floor to the 10th floor represents an increase in gravitational potential energy. As the elevator moves up, the object inside the elevator is being lifted to a higher position, increasing its potential energy.