Putting a turban directly on a male pilgrim's head is covering the head. Sitting beneath a building roof is sheltering in shade.
This distinction is the key lesson. Medical necessities, protective equipment, and women's face coverings involve separate applications and are not resolved by this simple comparison.