Inequality from the perspective of cognitive science