And the World Series winner isn't the team that scored the most total runs either. The game is played by rules. In the case of the Electoral College, those rules have been known by all for a very long time.
It's like being ahead on points, until you get knocked out in the 9th round. But, but...