Maintaining straight and level altitude
Set aside the barometric stuff.  The simple answer is that what we think of as altitude, on a sphere, is really distance from the gravitational source, the center of the sphere.  Therefore, a "constant altitude" is not maintaining the same plane in 3 dimensional space, but the same distance from the center of the earth.