I thought you meant their heads at first and I was like "why would shaving your head help prevent infections there?"For example, in our parents' time, they used to shave moms in labour to reduce chance of babies contracting infections. Turns out that actually increased the risk of infection.