There have just been either no women in those positions, or very few. Running for president takes a lot of money. Women, as yet, have not been able to attract that level of financial support. Running for president takes a lot of time. You have to devote your entire career to it.
Men have more time than women to focus on it.
Up and coming young men are often encouraged to be ambitious politically. We are not yet as encouraging of young women. We don't have any real fairy tales of women as heroes. A growing number of people have indicated that they would be willing to vote for a qualified woman as president. However, what they mean by qualified is often a moving target.