Ms. Clinton actually did carry the popular vote. Mr. Trump, however, carried the Electoral College, and that is the Constitutional standard for winning the Presidency.
If Clinton's lead in popular votes could have been distributed into certain battleground states (where she lost by relatively small margins), then the election would have had a different outcome.