Americans who go to the polls on Election Day don’t actually select the President directly.
Why did the framers choose this system?
There are a few reasons: First, they feared factions and worried that voters wouldn’t make informed decisions. They didn’t want to tell states how to conduct their elections. There were also many who feared that the states with the largest voting populations would essentially end up choosing the President. Others preferred the idea of Congress choosing the President, and there were proposals at the time for a national popular vote. The Electoral College was a compromise.
The stain of slavery is on the Electoral College as it is on all US history. The formula for apportioning congressmen, which is directly tied to the number of electors, relied at that time on the 3/5 Compromise, whereby each slave in a state counted as fraction of a person to apportion congressional seats. This gave states in the South with many slaves more power despite the fact that large portions of their populations could not vote and were not free.