The electoral college forces candidates to win broad coalitions across the country, encouraging national harmony.  In direct election of the president, candidates might appeal to clusters of voters, whose votes could be aggregated across states and regions, perhaps representing only one strata of society.