If an ideal gas is compressed adiabatically, its temperature rises, because heat produced cannot be lost to the surroundings. Each molecule has more $KE$ than before because of collisions of molecules with moving parts of the wall (i.e. piston compressing the gas).