I expect it has to do with the social groupthink about what a “scientist” is. Socially, people have been associating “male” as the default gender of “scientist” for years, in part because of generations of sexism in academia, and in part because of the proportion of men v. women in the field.