Why do We have An Electoral College?

When the framers of the US were debating some wanted the popular vote of the people to elect Presidents and the Congress wanted to be able to elect the Presidents. Thus the Electoral College was born as a comprise. Now Congress and the people both vote.