This works because almost all the US uses first-past-the-post elections for the Presidential general election. So you get outcomes like this:
Scenario 1:
Biden: 10 votes
Trump: 9 votes
Kennedy/Stein/West: 0 votes
Biden wins the state
Scenario 2:
Biden: 9 votes
Trump: 9 votes
Kennedy/Stein/West: 1 vote
Tied vote, decided by game of chance/lawsuit
Scenario 3:
Biden: 8 votes
Trump: 9 votes
Kennedy/Stein/West: 2 votes
Trump wins the state
This is why you see huge financial support from Republican billionaires for third party candidates who have no chance of winning.
To be fair, her husband arguably got into office because a third party candidate disproportionately ate more into his opponent’s votes.