What are the causes of self-righteousness?

Here’s a blog that explores the true reason why people become self-righteous.