When a minority group is under represented in a particular field, the explanation is always bias, without regard to any other possible causes. My examples were intended to illustrate the logic failure of that argument.
Only an idiot would claim that men are discriminated against in maternity wards because it ignores the fact that men can't get pregnant. Likewise, claiming that one of every two Americans are women and therefore one of every two software developers must be a woman or else sexism is also absurd. *
Not everyone has the talent or inclination to work in a given career. The fact that some groups seem sparsely included in some jobs does not mean there is bias in the field.
*Substitute minority group or career as needed.