It's my first question on here, so I'm not sure If my question fits the theme. Please refer me to the appropriate one, If I have made a mistake.
So a question that I wanted to ask has to do with whether or not animals potentially try to avoid spreading diseases. So I was thinking... In an event that a really deadly disease emerges in a population, it would be really dangerous for animals that live in social groups, of any size really, not to have any instinctual behaviours that try and prevent the disease to spread. Animals that live in big heads, like wildebeests would just probably leave the diseased individuals behind, apes and monkey could potentially cast out individuals from the group, etc. Ants have separate sections in their tunnels that serve as graveyards, I presume for this exact purpose.
A lot of parasitic organisms have adaptations that specifically target animals with social behaviour, so why wouldn't animals adapt against that?
Something that also came to my mind is that this could possibly evolve not as a social behaviour of a group, but sometimes that individuals in a group would do, for example self isolation. However, I do not find this likely, I possibly requires higher cognitive understanding of disease spread.
Am I way of base here? If not, could you please provide some interesting examples you are familiar with.
Please consider that I AM NOT a biologist, nor have any experience in the field. I am a computer scientist, who enjoys biology. If any of my axioms or hypothesis have don't even come close to reality, please be kind, I am not educated in this field. Thank you for reading