The kinetic theory explains the pressure of a gas by treating it as a very large number of tiny molecules in rapid random motion. The assumptions are: the molecules' own volume is negligible compared with the container, there are no forces between them except during collisions, all collisions are elastic, and the time of a collision is negligible.
When a molecule hits a wall and bounces back, its momentum changes, so the wall exerts a force on it and it exerts an equal force on the wall. Many such collisions each second on each unit of area give a steady pressure.
Comparing the result with pV = NkT shows that the mean translational kinetic energy of a molecule depends only on the thermodynamic temperature.