@simsimmaaz They are being polite.
No one likes to be around a coughing person since Covid (and before). They want to be assured you are not passing along cooties. How can you know for certain without first seeing a doctor.?
Go see a doctor for your cough!