Humans appear to have long expressed a desire to know which horse (or horses) were the fastest, thus
horse racing has ancient roots.
Gambling on horse races appears to go hand-in hand with racing and has a long history as well.
Thoroughbreds have the pre-eminent reputation as a racing breed, but other breeds also race.