the gas/liquid needs energy to expand... each molecule of the gas needs a kick to have enough energy to bump around enough (and stablize the pressure) and it absorbs the heat energy from the surroundings...
(it; absorbs; the heat energy; from the surroundings)
it
absorbs
the heat energy from the surroundings