Walking on grates wearing shoes is one thing. Walking on grates wearing hooves is something else entirely. Especially if you want to make the holes big enough for cow patties - which are high in fiber - to fall through.
In fact there's a device for letting cars through but not cows that is basically a grate you put on the road. The fence comes up to the grate on both sides and there is no gate. You just drive over the grate.
(Not that that matters - the bulk of beef cattle can barely move, it's not like factory farms have space for designated potty areas or something).