Bots usually do their thing in the stomach and then are released through the manure. There is a parasite that cows get that do what you are describing I think they are called screw flies. Here is one article All About Worms
I'm sure there are tons more out there if you want to google them. Was your horse pastured with cattle or sheep maybe?