The fridge and its contents are a thermodynamic system. The amount of energy required to change the temperature is related to the contents heat capacity. Liquids and solids have higher heat capacity than air. If there is a temperature difference between the inside and outside of the fridge...