The GPS receiver uses the WGS-84 reference ellipsoid Model of sea level to calculate Elevation. This model has a smooth spherical shape and this means that the "altitude" value displayed on screen is the elevation above this Model and not the real sea level. The shape of the earth is an ellipsoid and not a smooth sphere.