Why do We have the Electoral College?

There are many reasons given for why we have the electoral college most not true. The main reason it exists is so that the power to elect doesn’t lie solely with the people.