The gas is warmed to a higher temperature by the work done on the gas during the compression.
Forward