Bonj
Allow a bit of poetic license-
Take a perspex ruler. Rest one end on a table, have it vertical and push down on it with your hand until it is bowed.
Now, take a knife and shave away at it, all the time keeping the pressure on. What's going to happen?
The amount by which I will have to push down with my hand to keep it in the same position will gradually decrease. If I keep the same pressure, then I would guess it would gradually start to bend more as I shaved some off.
The potential energy isn't in the 'shape', the potential energy is in the actual molecules of matter that are being compressed together at a higher compression level than equilibrium.