We do not elect the president, we elect electors who vote for the president.
It is not required by the constitution that electors even vote for the candidate whom is listed on the ballot as being their candidate.
Apparently the Electors are complete free agents in this regard.
When the constitution was ratified the only people directly elected by the voters were House members. Senators were selected not elected.
I think this was posted to the wrong person