It has nothing to do with popular vote. It has to do with qualifications. EC is intended to keep out unqualified candidates -> As Alexander Hamilton writes in “The Federalist Papers,” the Constitution is designed to ensure “that the office of President will never fall to the lot of any man who is not in an eminent degree endowed with the requisite qualifications.”
And if that were to happen (Clinton victory w/ Trump popular vote win), trump would say the election was rigged and fuel fires to an uprising.