I would argue that's it's a defense mechanism that he uses because he's been hurt so much in the past (dysfunctional family drama, bullying, social anxiety). It's definitely not a good knee-jerk reaction to have, but I can kind of see why he does it.