Why is it that one candidate can win the popular note but another wins the electoral vote and thus the presidency? That’s how the framers of the Constitution set it up.

Why is it that one candidate can win the popular note but another wins the electoral vote and thus the presidency? That’s how the framers of the Constitution set it up.