Exactly.  People who have the ability to become software engineers are a subgroup.  They are not average in intelligence and there is no reason to think their preferences or traits reflect the averages of the whole population either.  Whatever the average traits or interests of men or women may be, it doesn't tell us anything about the traits and interests of people who have the ability to be software engineers.