Grade inflation and the Dunning-Kruger effect
The famous Dunning-Kruger effect, in the words of Dunning and Kruger, is a bias where:
People tend to hold overly favorable views of their abilities in many social and intellectual domains
in part, because:
[P]eople who are unskilled in these domains suffer a dual burden: Not only do these people reach erroneous conclusions and make unfortunate choices, but their incompetence robs them of the metacognitive ability to realize it.
There have been plenty of critiques and explanations over the years, including an article by Marian Krajc and Andreas Ortmann who argue the overestimation of ability is partly a signal extraction problem.