The story
Oddly, this once meant the opposite: in 1588 Christopher Marlowe used it to mean stopping something in its tracks. By the 1870s it described a rowing crew going the distance, and soon racehorses with the stamina to last all the way around the track. From there it spread to anyone who refuses to quit halfway.