In the gaseous state, the particles move about randomly at high speed and because of this random movement, the particles hit each other and also the walls of the container. That is why, they exert pressure on the walls of container.