Cattle totally will given a chance. Most herbivores will seek out grain in preference to leaves.
Is a 100% grain diet good for them? No, but its not a serious option in their ancestral environment, so there was no fitness cost in optimising their preferences for grain.