Why we measure the force of gravity with the distance between an object and the radius of planet (that means the gravity force come from center of planet)?

And is that disagree with general relativity?