Three things I would check:
try measuring with the tape as straight and flat as possible, twisting And flexing it over your rail may produce some inaccuracies.
check your tape is accurately measuring using both faces of the hook/end, if the tape is worn, damaged or cheap this may be a source...