https://en.wikipedia.org/wiki/Garden-path_sentence
fruit flies like a banana.
So in reality this is just an incorrect sentence. It should be written as
"The horse that raced past the barn fell"
https://en.wikipedia.org/wiki/Garden-path_sentence