Probably one of those sayings where accuracy yields to brevity.
I believe the saying originally applied to competing for women, where the "nice" guy typically also fails to project testosterone, rendering him less compelling to women, and so he "finishes last." You don't have to be a dick to be manly, but women nonetheless eat up the manliness and often give you a free pass on the dickishness. True story.