You've probably got some crops or straw nearby. They love crops and straw :) There's a bug where, if they see some crops/straw but can't reach it they get stuck. Best solution until then is to make sure your cows are far enough away from your crops. Thanks