Pressure is defined as the force exerted by an object or a substance per unit area of the substance.
Mathematically, Pressure = .
According to the kinetic theory of gases the molecules of a gas are in a continuous motion and they move in all directions due to their high kinetic energy.
Kinetic energy means energy obtained by the motion.
During the random motion of gas molecules, these molecules collide with each other and with the walls of the container exerting pressure.
Therefore Pressure of the gas =
Hence pressure of gas molecules is due to the kinetic energy of the molecules.