It reduces outward spray and subsequently less droplets on surfaces. It also reduces the inward inoculum from others which has an effect on disease severity and the ability of your immune system to clear a lower viral load mitigating symptoms.
Medical masks are used in clinical settings to help reduce exposure to blood, bodily fluids and different pathogens. The hospital provides a variety of masks based on risk. In office environments, staff wear non-medical masks.