Because the Rf is the RATIO of the two distances, it is constant for a given compound in a given mobile phase.
for a short length of paper, both distances will be shor---- but the RATIO will be Rf.
for a long length of paper, both distances will be long------but the RATIO will be Rf.