Men are much more likely to go for the high paycheck, not many women do, work life balance is much more important, plus they feel much more secure at home each night.
Does it matter to passengers if a woman is flying?. In most cases they don't know unless the cockpit door is open boarding. However over the years I have flown as a passenger a great many times and I have NEVER heard a female pilot address passengers ???.