This is an expression to indicate that a horse didn't have enough stamina to fight out the finish.
It is typically used to describe leaders that bowl along up front, before tiring and dropping out of the race a few hundred metres out from the winning post.
"He just spent too much petrol early on. I knew he was buggered coming round the home turn, and then he died in the arse."