One mole of gas lives in the chamber below. Push the piston in and the same molecules hit the walls more often — pressure climbs. Heat the gas and they hit harder and more often — pressure climbs again. The whole behaviour compresses into one line: PV = nRT.
Follow one molecule ricocheting between two walls a distance L apart. Each wall collision reverses its x-momentum; count the hits, average over the swarm, and pressure falls out. This four-line argument is the heart of kinetic theory — reproduce it on demand.