Psychology textbooks point that out as a Maladaptive Coping Mechanism.
Not trying to mock you or be oppositional - I would invite you to check it out, but the Wikipedia article is not detailed enough.
- Someone with a proper background in psychology wants to weigh in?