By placing a body at a certain height from the ground, we do work on it and this work is possessed by the body as the energy which is known as 'gravitational potential energy'.
We can define gravitational potential energy as the energy possessed by a body by virtue of its position (with respect to the surface of the earth).