Because the aircraft moves in the earth and is affected by the gravity and rotation of the earth, the accelerometer in the inertial measurement device measures the result of all the resultant forces including the gravity of the earth on the aircraft.