They're able to provide much more energy as a food source, too. That means we'd have to eat several pounds of veggies to replace the energy we get from one pound of meat. If you're going to compare the cost of growing animals vs veggies, you've got to account for needing more veggies.
It's a complex equation because there are a lot of factors that have to come into play to do a fair comparison. It's probably as complex to model, and as sensitive to input-variable selection, as predicting global weather patterns.