Soldier fly larva will happily crunch away all the moldy or rotting household food waste you throw into a cold compost, but good luck getting a chicken to voluntarily eat much of it (and they'd probably get sick pretty often if they tried).
I assume industrial operations work essentially the same way, making use of the countless waste streams that livestock either won't consume or can't safely consume.
The bigger question for me is how they harvest at that scale. The hearsay I carry around in my head is that they just drown insect crops in chemical pesticide to harvest them, which I'm hoping is not the norm.