Indeed it does. But that doesn't violate the laws of thermodynamics. ALL energy production liberates potential energy.