The pressure exerted by a gas is due to the random motion of particles in the gas. Gases have weak intermolecular forces and the particles are in continuous random motion and these particles collide with the walls of the container. These collisions with the walls of the container exert pressure on the gas.