The story
From the fact that a donkey is typically depicted as a clumsy animal with a lack of intelligence (evident in terms such as ass and donkey vote), in comparison to a horse which is depicted as a strong and powerful companion animal. A bronco is a bucking horse.
Etymology from Wiktionary, CC BY-SA 4.0.