Naive guess: the damage was already done. Cough is a response to the damage caused by the virus, not to the virus itself.
If you get shot, you still have a bullet wound when the bullet comes out.
If you get shot, you still have a bullet wound when the bullet comes out.