I don't think it's that unusual on the scale of one person. it just happens sometimes, for example with Henry VIII. It could just be thr nature of the coin toss.
Henry VIII had only three legitimate kids surviving infancy, one of which was a boy. He was 1/3 for boys in this count. Add in the one for sure illegitimate child and he's 2/4 born male. Of those infants who were stillborn or died very early into their infancy, several were boys but it seems the counts for those children were uncertain. Also, there were probably several illegitimate male and female children had by him.
Most of his kids were conceived through IVF, and sex selection through IVF is not difficult. He also has disowned his one trans daughter because she refuses to be his son.
> don't think it's that unusual on the scale of one person
It would be remarkably unlikely. It's fair to say Musk is probably sex selecting for sons. It doesn't follow that he has plans "to make women afraid to participate in public life."