That was done for years and may still be, at least in the 80’s, in Las Vegas, for food scraps from the casinos, to hog operations nearby.
But my point is, the slop of which you speak is gravy compared to what can and does get consumed by farm animals just milling around. I’ll leave it at that. Spoken from an ex-farm “hand”.
I read that much of the Tilapia Fish imported to the US from Asia are grown in ponds fed by pig feces and run-off from pig farming.
You shouldn't eat it because it contains Omega-6 which is unhealthy for you.