Air is composed of freely moving molecules. Air molecules trapped in a volume occupy all of the available space and rebound against the walls. The number of rebounds on the walls is directly related to the notion of pressure. The more molecules there are, the more they hit each other, the more numerous the rebounds are. The pressure therefore increases with the quantity of molecules.