Answer:
Though molecules already had kinetic energy and on compressing the molecules will collide more rapidly with each other. Hence, we can conclude that when a gas is compressed, the molecules are pushed closer together causing the gas to rise in temperature