What is the histroy behind electoral votes?

The Founding Fathers established the Electoral College in the Constitution, in part, as a compromise between the election of the President by a vote in Congress and election of the President by a popular vote of qualified citizens.