The relationship between pressure and volume results from the influence volume has on the rate at which gas molecules collide with the container walls. If the volume decreases, the molecules encounter the container walls more often. This is true even though the speed (temperature) of the individual molecules has not changed. An increased number of collisions equates to higher pressure. Conversely, if volume increases, the rate of collisions and the pressure decreases.