At university level, the grades are more accurate (but still flawed) because the grade is typically 70-80% test and quiz based.
My experience in the US with grades for middle school and high school is that it's 85-90% non-examination based-- Meaning it's essentially a measure for how well you can complete and turn in the busy work on time.
That's a great measure for conscientiousness, but the standardized tests will show who actually learned the material.
[1]: https://www.miamiherald.com/news/local/education/article1952...
"When a measure becomes a target, it ceases to be a good measure."
Your point is still valid though, I find university test scores more "accurate" too, whatever that means for learning.