Gravity is not infinite at the center of the Earth because, while gravitational acceleration is inversely proportional to distance squared, the mass surrounding a point at the center cancels out, resulting in zero net gravitational force. Inside the Earth, gravity is determined by the average density and distance from the center, described by the equation g = -kr, where k is a constant. Although gravity from each atom contributes to the overall field, the symmetrical distribution at the center means forces from all directions balance out. Outside the Earth, it can be treated as a point mass, but this does not apply within it. Thus, while gravitational effects are present, they result in zero net force at the Earth's core.