Enthalpy is a thermodynamic function of a system. It is equivalent to the sum of the internal energy of the system plus the product of its volume multiplied by the pressure exerted on it by its surroundings. Since heat is absorbed from the surroundings therefore the enthalpy of the ideal gas increases.