There has been much writing (including here) about problems with the Electoral College in the USA, and I've even proposed solutions such as a tiebreaking system for close votes. I also noted the amazing coincidence that in the 4 times the winner of the college lost the popular vote, 3 were the 3 times we had a son or granson of a President elected.
But I thought it might be worth exploring the merits of the college, even though most individuals want it abolished. (Though no smaller states want it abolished since it gives them disproportionate power.)
First of all, there is the "official" goal of using the college system. It requires the President, who must win a true majority of the college, to be popular in at least half, and probably more, of the country. The framers didn't want it to be possible for a candidate with extremely strong support in one particular region to win the Presidency.
Example: Say a candidate, coming from a particular region, had immense support in that region, getting 90% of the popular vote, and much lower support (10-25%) outside that region. Such a candidate could win the popular vote since all those votes in their own region would count, even though they are not a national candidate. To win the college, their "region" would have to contain half
the population of the USA.
(This is based on the traditional, but not required all-or-nothing allocation method, which states do because it makes candidates want very much to please them.)
I'm not a fan of some regions having more power than others because of the political legacy of how big states were. 2 senators for Wyoming and 2 for California is grossly unfair. However, the concept of federalism does require some protection for regions, so you don't get one region ruling the land at the expense of another, which can lead to seperatism.
Another benefit is election cost. Due to the college, candidates know to spend their election money only in undecided, "swing" states. As such, they can campaign with much less money. With a popular vote, or even a proportional electoral college, they would have to campaign everywhere. This of course has downsides in terms of fairness, but if they had to campaign everywhere they would have to raise even more money, and be more beholden to the special interests that gave it.