Over-crowded cities in China and Japan regularly show large portions of the population wearing those face masks hoping to reduce the number of contagions spreading.
They can't know whether you are trying to protect yourself or protect them.
While the Jury may still be out over the effectiveness of those masks, I see them all the time in Dr Offices and Hospitals alonog with a sign, If you are sick Please put on a mask.