Nice Guys Finish Last Meaning

What does it mean when people say nice guys finish last? This phrase has started to get pretty viral over the years,