When a gas sample is compressed at constant temperature, its pressure increases. This happens because the gas particles are forced into a smaller volume, so they collide more frequently with the walls of the container, resulting in higher pressure. This relationship is explained by Boyle’s Law, which states that pressure and volume are inversely proportional when temperature is constant.