Why do people keep coughing whenever I walk past them?

Every time I walk past someone they will sniffle or they will turn their head and cough on me. I thought that it might just be a coincidence but now that I pay attention to it, most people do this. I’ve noticed this a lot and not just recently. Has anyone else noticed this happen to them and why do people do this?