The pressure exerted by the gas is because of particles of gas hit each other
Particles of gas hit each other.
Since particles of gases move in every possible direction, they continuously collide with other particles and also with the walls of container.
When the particles hit the wall, they exert an unbalanced force on the wall of container. This force when divided by area gives pressure.