Her gender helped a lot.
Maybe—we don’t really know. But her gender also keeps a lot of women back from getting promoted that high, too. So she apparently made it work for, rather than against, her.