It was created to allow the states to select the President.
Exactly and it’s reflected in the party conventions where each state in the roll call casts their delegates