GPS tracking is accurate, but race routes are usually measured meticulously according to specific rules and regulations. Courses are measured via tangents. You likely didn’t run the race exactly as the course was measured, so your recorded watch distance will be somewhat different.