From what I remember he was generally regarded as a dick even before the leg thing, the leg just made it worse. Real answer is cause he thinks of himself as unlovable so he acts like a turd before people have the chance to reject him.

Also, intelligence, unironically.