Answer:
Step-by-step explanation:
As the gases in the galaxy contracts due to the gravitational pull due to which the pressure inside the lump of gases increases, by the ideal gas equation, Pressure is directly proportional to the temperature, so the temperature of the gas lump increases.