I think it was Jerry Pournelle’s discussion on horse cavalry vs pikemen that mentioned horses will typically shy away rather than trample a writhing mass on the ground because they are very afraid of broken legs. Presumably cows, eveb zombie ones, are the same.
Both cows and horses will run away from predators, or (for cows) circle to defend. A crippled cow or horse is a dead duck; it can’t run, it can’t keep up with the herd for protection. A crippled cougar or wolf can limp 3-legged and maybe feed off abandoned kills until the bone knits. A herbivore with a fracture is basically dead. This is (I have heard) why they shoot horses, don’t they. The horse has no instinct to get by without using their bad leg and will simply make it worse. I assume cows are the same way.
So cows will avoid what appears to be uncertain ground. They will avoid gates that feel too uneven and potentially risky. The painted lines work because there is no such thing in nature generally - so cows have never needed the smarts or depth perception to figure out if a ground pattern is danger or decoration. In nature, 99% of the time, it’s danger. Horses, at least, can jump a 4-foot gap. Horses are head-up, watch for danger and run from it, jumping whatever gets in their way; cows are head-down, horns-forward defence or attack. They are not designed to jump because their defence method does not need them to.
Darwin and other visitors mentioned the birds at the Galapagos. Originally, they were so unafraid that one episode, they landed on a sailor’s arm to drink from the pitcher while he was pouring a glass of water. A visitor about 2 decades later, when people had been there for a while, mentioned the boy sitting by the pond whacking birds for dinner needed a 3-foot stick because the birds would not come any closer.
It seems there’s a “skittishness” gene, and it’s prominence comes and goes; a too skittish animal will not eat as well and lose out, a not skittish enough one becomes dinner. so the level of skittishness or wariness adjusts through selection…