Why was the president elected by the House of Representatives in the election of 1824?

1. No one had received an outright majority of electoral votes.
2. There was a runoff between the top two candidates.
3. The Twelfth Amendment required it.
4. The popular vote had ended in a three-way tie.