Kinetic molecular theory

Gas pressure comes from molecules hitting the walls, and temperature measures their average kinetic energy, which explains why heating a sealed gas raises its pressure.

From General Chemistry.