CO2 isn't the problem with cattle, its methane, which is a byproduct of their digestion. Methane is a greenhouse gas.
The other issue is that grassland absorbs less CO2 than forests, and lots of forests have been cut down in favor grassland suitable for grazing animals.