One female reading this thinks this theory explains things quite well -- confidence is attractive but it also covers up a multitude of flaws that we don't find out until we're treated like crap by the confident bastards.

Luckily, social confidence isn't the only kind; I've discovered that confidence around a hobby, a well-liked job, and other things can be just as attractive and much more likely to indicate a guy worth having around.