The pressure exerted by the gas against the container wall is because of:
Particles of gas hit the walls of the containers.
Since particles of gases move randomly, they continuously collide with other particles at random and also against the walls of container.
The random collision of particles against the container wall exert an unbalanced force on the wall of container. This force when divided by area gives pressure.