I'm not going to claim animals are geniuses, but filthy? Maybe they wouldn't be filthy if they had enough space?
Horses, goats, pigs and chickens....none of them are filthy. Many animals spend much of the day keeping themselves clean/groomed. A clean animal is more resistant to parasites.