The value of g changes with height above the earth’s surface and it also goes inside the earth. When the value of r decreases, then the value of g is also expected to go down, as per the formula = f= Gm1m2/r2. Meanwhile, the part of the earth, which contributes towards the gravitational force felt by the object also decreases. This means that the value of M to be used in the equation also decreases. As a combined result of change in r and M, the value of g decreases as we go deep inside the earth.