Read Federalist 68. The EC was never intended to mirror the votes of the people. https://en.m.wikipedia.org/wiki/Federalist_No._68