It's not. Once something has fallen down, it can't fall down again.
To draw energy from the gravitational attraction of 2 bodies, you must first separate them. That consumes energy.
On second thought, I suppose tidal energy fills the bill. Extracting that energy is really exploiting the Moon's motion, using gravity as the "conduit". Not strictly perpetual, but essentially so for our needs.