I know it applies to pigs,not to keep on their own, but not other animals. I know quite a few people who have a milking goat, and keep it out in the field with the ponies, so it has company. Horses are not agrcultural I know, but again, they are kept on their own.
I have a pet sheep, and a llama .....they have each other for company.