Remember, the same thing happens when you actually vote for President. Your votes determine how many Electors your state sends to the Electoral College, and they cast the votes for President. And they are not necessarily required to vote in a way which reflects how the population voted. https://www.youtube.com/watch?v=OUS9mM8Xbbw and https://www.youtube.com/watch?v=7wC42HgLA4k cover the process and its problems nicely.
Remember, the same thing happens when you actually vote for President. Your votes determine how many Electors your state sends to the Electoral College, and they cast the votes for President. And they are not necessarily required to vote in a way which reflects how the population voted. https://www.youtube.com/watch?v=OUS9mM8Xbbw and https://www.youtube.com/watch?v=7wC42HgLA4k cover the process and its problems nicely.