As I recall from my fifty year old education the Electoral College was designed to prevent “the tyranny of the majority” where a few high population states could control the whole country and advance regional interests at the expense of the minority. In 2016 Trump won 60% of the country while losing the popular vote to high density cities.
Federalism: States’ Rights.
This assault started with the 17th Amendment.