Hillary didn't exactly lost seeing as she still won the popular vote,it was the system that elected Trump. if the elections were held in any other country and had the same result,Hillary would have won.
if the election had been held in other another country there would have been a second round of voting and the gary johnson voters would have switched to trump