When an item is raised, the work is done in opposition to gravity. When an item is worked on, energy is transmitted to it, and it develops gravitational potential energy. If the same thing falls from that height, gravity must do the same amount of effort to bring it back to the Earth's surface.