The cabin pressure is not constant - it's allowed to drop as the plane ascends, within safe levels (typically down to the pressure one would find at between 1500 and 2000 meters of altitude). The reason for this is that a pressure difference between inside and outside puts stress on the fuselage.