Simple explanation for why we think we're right even when we're wrong: we perceive what we believe. Not the other way around. Even when we're dead wrong.
In psych they call this confirmation bias. https://en.wikipedia.org/wiki/Confirmation_bias
Scott Adams wrote a fantastic book on the subject, in the context of Trump's election to the Presidency. https://www.amazon.com/Win-Bigly-Persuasion-World-Matter/dp/...