"In the 2016 United States presidential election, ten members of the Electoral College voted or attempted to vote for a candidate different from whom they were pledged.[1] This movement, dubbed the Hamilton Electors, was co-founded by Micheal Baca of Colorado and Bret Chiafalo of Washington. The movement attempted to find 37 Republican electors willing to vote for a different Republican. Three of these votes were invalidated under the faithless elector laws of their respective states, and the elector either subsequently voted for the pledged candidate or was replaced by someone who did.[2][3][4] Although there had been a combined total of 155 instances of individual electors voting faithlessly prior to 2016 in over two centuries of previous US presidential elections,[5] 2016 was the first election in over a hundred years in which multiple electors worked to alter the result of the election in order to "vote their conscience for the good of America" in accordance with Alexander Hamilton's Federalist Paper No. 68.[6] Electors were subjected to public pressure, including death threats."
https://en.wikipedia.org/wiki/Faithless_electors_in_the_2016_United_States_presidential_election
So to 'heck" with winning the popular vote. It's all about the Electoral college.