Complaining that a candidate who won the popular vote didn't win the election is a little like complaining that the football team that amassed the most yards of offense didn't win the game.
"Yards of offense" is an important stat, but it's not what decides the outcome of the game. What decides the outcome of the game is "Points scored". Similar and linked, yes, but not the same.
Similarly, we do not now nor, to my knowledge, have we ever determined the Presidency of the United States in terms of the popular vote. It's the Electoral College vote that really matters. Always has been.