It is an evolutionary trade off due to how human beings instinctively handle cognitive dissonance.
It is very amusing and somewhat depressing on how the most intelligent of individuals can be reduced to a frothing reactionary if you know his/her life history and deduce their biases.
I can see the just world bias there, in the idea that "you should be able to afford it, tough luck if you can't". I don't see cognitive dissonance; how does that come in?