An ion gradient represents a system out of equilibrium because at equilibrium, the concentration of ions would be equal on both sides of the membrane. Establishing a gradient requires energy as it is energetically unfavorable to move a molecule from an area of lower concentration to an area of higher concentration. Energy can be recovered from gradients because the movement of ions from an area of high concentration to an area of lower concentration occurs spontaneously. Thus, many processes establish gradients as a way to store energy, which can then be recovered later to do work (e.g.
chemiosmosis in the production of ATP).
Extracting energy from a gradient requires that the ions move through a protein that is able to couple the movement of ions across the membrane to some chemical process (e.g. ATP synthase). Although ionophores allow the movement of ions down their concentration gradient, they do not couple the ions to any other chemical process, so the energy stored in those ions are lost as heat.
A good analogy here might be a hydroelectric dam. Dams can produce energy because they couple the flow of water across the dam to a turbine. However, if one were to punch a hole in the dam, the water would flow through that hole without going through the turbine, so it will drain the reservoir without producing any electricity. Ionophores are essentially acting like a hole in the metaphorical dam.