The main reason why raising cattle contributes to global warming is:
Cattle have microbes in their stomach that produce methane during digestion.
Methane is a potent greenhouse gas, and its production during digestion is a significant factor in the environmental impact of cattle farming.