The idea that A caught something from B is a theory
What is actually observed is clusters of illness
It could also be that you were all exposed to some toxin or shared some deficiency
Imagine some nearby field was spraying pesticides and you were all poisoned - it would look like you all got sick around the same time