Oh my. What ignorance. The electoral college exists because it was the intent of the people who wrote the Constitution to have the states, not the people, elect the president. If you recall, senators were originally appointed by state government, not elected by the people, too.

The purpose of the electoral college then was the same purpose it has today. Back then, the concern was that a single state or two (New York and Massachusetts, for example) had so many people that they could elect the president if there were a popular vote and other states would have no say.  The situation is the same today. The tail is not supposed to wag the dog.