It's a rare phenomenon to win the presidency but not the popular vote. But it has happened twice in the past seven elections.