Surgeons wear masks to protect the patient, because masks are very effective at trapping both droplets and aerosols that are emitted from the wearer. They are not designed to protect the user from lingering aerosols as masks are too loose to form a good seal, so most air breathed in simply enters from around the sides of the mask.