For example, researchers found students who were least proficient often overestimated their own abilities.“The skills they lacked were the same skills required to recognize their incompetence,” Fry said. “The incompetent are often blessed with an inappropriate confidence buoyed by something that feels to them like knowledge.”
It's called the Dunning-Kruger effect.