One reason for the Electoral College was that the founding fathers believed that a tyrant could manipulate public opinion.
Another reason is that what smaller states would have a stronger representation and the framers believed that smaller states should be supported.