The Dunning–Kruger effect is a cognitive bias in which unskilled people make poor decisions and reach erroneous conclusions, but their incompetence denies them the metacognitive ability to appreciate their mistakes.

From Wikipedia.

This seems to be more pronounced in (incompetent) people who have a tendency towards self-aggrandisement – those who are always talking up their abilities and exaggerating their own importance – and without a healthy level of self-awareness.

In logical reasoning, in parenting, in management, in problem solving; we use the same skills to produce the answers as we do to evaluate those answers.

Clearly without self-awareness, we could be doomed to repeat our mistakes.