This is actually a surprisingly sensible idea, given the amount of energy wasted by feeding cows and then eating them, rather than eating, say, the wheat or maize we feed them. In countries like India, where food is often scarce, and probably has been in the past, this has effectively developed on it's own, although for religious reasons rather than ecological ones. But the end result is the same.