The election of 1824 didn't go as planned... No one got enough votes to become president, the closest anyone got to becoming president was 99 votes, but to win you need at least half plus one. so the top 3 that got the most votes were picked to run head to head.
John Quincy Adams has just made a deal with Henry Clay that if he helps him become president because of his position of being the Speaker of House then he will help Henry get a better position in the white house. Once John Q. Adams became president he made Clay Secretary of State. This lead also lead to Jackson losing the election and to start campaigning immediately.