The Electoral college had to elect the President and the reason why it was created was because the delegates of the Philadelphia Convention had fear that democracy would lead to group mobilization.
The Framers granted the president the veto acts of Congress too.