part of that optimization is also disease prevetion, if we maximize "product" but produce more expenses in the form of diseases, we'd be losing money, not making any.
the meat industry is a horror show, tbh, and they don't maximize product extraction because they want to save every last piece of protien, they do it for the cash.