Why is gravity inside the Gyroscope class?

From hardware point of view, gravity should be in accelerometer.
So essentially an accelerometer measures indirectly the acceleration due to Applied Force + Acceleration due to gravity.
gyroscope is not sensitive to gravity.
Why is gravity inside the Gyroscope class?

Gyroscope is the class where you read the device’s gyroscope and accelerometer. There is no accelerometer class. So gravity is also found in this class.