The origins of judgement

Thinking girl

What is the origin of thinking errors ? Is it evolutionary or creationist?