In the Federalist Papers, Alexander Hamilton wrote that the Electoral College would act as a safeguard against unqualified candidates becoming president. He thought it'd be possible for a rich famous asshole to leverage their popularity to become a governor or state legislator, but surely they wouldn't be able to fool enough electors to become President! Whoops. https://ballotpedia.org/Federalist_No._68_by_Alexander_Hamilton_(1788)
Isn't it weird that there are no requirements to run for President besides being at least 35 years old, a natural-born citizen, and a U.S. resident for 14 years? The screening process to become a U.S. citizen is far more rigorous, but anyone born here that's rich and famous enough is somehow qualified to run the country, even if they don't know how a bill becomes a law.