This is part of the problem. If animals are given the antibiotics, then their waste products contain them, and piles of manure or water runoff/storm drains/wastewater ponds form a giant evolutionary experiment for development of drug resistant organisms.
They're not just a problem while they're in animals, they're a problem if they're used at all.
Those antibiotics go on to contaminate groundwater, and as you say, contribute significantly to antibiotic resistance[2].
[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4220964/
[2] https://en.wikipedia.org/wiki/Antibiotic_use_in_livestock#An...
while I don't want surprise antibiotics in my food, I'm probably more concerned about the antibiotic resistance that antibiotic exposure generates. The flora of those animals _will_ have drug resistance genes that doesn't just "wash out". That resistnce can be passed to other animals or human by direct contact, environment or otherwise.
It’s not in a farmers best interest to use an antibiotic in those circumstances unless the animal needs it.