The Electoral College dates back to 1787 during the time the constitution was being created. Citizens cannot vote directly because our founding fathers didn't think regular citizens were not informed enough to vote directly.
The Electoral College can be found in the constitution Article ll Section l Clause ll
The creators of the Electoral College are our founding fathers: John Adams, Benjamin Franklin, Alexander Hamilton, John Jay, Thomas Jefferson, James Madison, and George Washington.
The Electoral College was created so we could elect our President with the decision of special people. One candidate needs 270 to win the election. One candidate can win the popular vote but if they do not have enough electoral votes they will lose, if the other candidate has 270+ they will beat the popular candidate and win the election.