I personally don't think the lack of diversity is a choice. My experience is software companies would like to be more diverse than they are - but are actually grateful if they can simply get someone with the right tech skills. There are many initiatives in play, but it will take time for the effects to feed through.