Nobody is saying it hinders their prospects in general. They're just saying that "being a dick" is incompatible with a specific kind of job: one that requires collaborative and cooperative work with other people and navigating the social hierarchy of a company.
In my experience, it's the nice people that get fired and the assholes that get promoted. It's not exactly a secret that silicon valley is full of arrogant assholes.