How does the kinetic energy change when a liquid is cooled gradually?
This is because temperature is a measurement of the average kinetic energy of a substance. So, when you cool a substance, the temperature drops and makes the molecules move slower, lowering its KE. Because the molecules are more at rest, their potential energy increases.
Source and for more info: