Cows are not extracting protein from grass (well not much), they are converting the cellulose in the grass into microorganisms and then extracting the proteins from the microorganisms. The ruminant digestive system is an amazing system [1].
Yeah, ruminants are amazing with their cyclic puking and eating :)