It’s almost entirely cultural. Look at where the Muslims of the world actually live and how they dress; the nations with the most Muslims, notably Indonesia and Pakistan, do not enforce use of niqab. (There’s a state-by-state analysis at Wikipedia: Hijab by country.)