A spherical shell of matter doesn’t exert any gravitational force on objects inside it, which means that if you go underground, the layers of rock above you stop contributing to your weight. From a gravitational point of view, it’s as if they vanish.