Legally, tis my understanding that farm animals MUST be kept within their enclosure and that any accidents that occur are the farmers financial responsibility.
We had a farmer up north in our area, whose animals were alays out. He fixed his fences good and proper when he had to pay for 3 cars in 6 months, and for medical expenses.