The land used to grow the food used to feed most cattle most definitely could be used for other purposes or just left alone.
The vast majority of cattle aren't grass-fed on the high plains just before slaughter. Sustainably produced beef like this simply can't scale and is too expensive for mass consumption.
Most cattle are fed in feedlots using grains produced en masse for that purpose.
That is why beef production has such a huge carbon footprint - because of the massive crop fertilizer inputs needed to feed massive quantities of cattle.