First, diversity, particularly in regards to race and gender, has become a cultural dogma, an idea to be pursued (never questioned) even if it comes at the expense of personal choice. Second, it is taken as gospel that the gender disparity in STEM fields stems (pun intended) from gender discrimination.
Source