This behavior is explained by the ideal gas law of PV=nRT. When the temperature increases, so does the volume (when the pressure is constant).
This is because the kinetic energy of the gas molecules increases as the temperature goes up, so the gas molecules move around more and take up more space.