Collisions produce pressure
Gas particles move randomly in all directions and collide with the walls of their container. Each collision changes a particle’s momentum and produces a force on the wall. The resulting gas pressure acts normally to the surface: at right angles to it. A gas can be compressed because its particles are widely spaced, allowing the distances between particles to become smaller without shrinking the particles themselves.