The kinetic energy in gases is very large and maximum among all three states of matter. (solid, liquid, gas).
Due to this, the molecules of the gaseous state are free to move rapidly and randomly which results in the particles colliding with one another and the container in which it is stored.
The constant collision of gas particles on the walls of the container, cause it to exert a steady pressure.