Wait, what are you basing this generalization on? If it's purely based on numbers, I've worked with more female programmers than african americans. If the allegation is that the software industry is sexist purely because women don't participate, then the software industry must be even more racist.
Umm...assuming no bias, institutional or otherwise, you should randomly encounter a woman programmer once for every male programmer. Whereas you'd only encounter an African American one out of eight programmers (12% of the total pop).