You might want to specify which female Egyptian rulers you are thinking about, since circumstances likely varied across the many centuries of Egyptian history. Iirc Hatshepsut and cleopatra took power during succession crises where there was not a clear male heir. I believe that cleopatra being a female ruler was a factor in alienating roman elites from marc Antony, helping lead to her downfall. Hatshepsut's sex similarly caused a backlash among Egyptian elites, who overthrew her and attempted to expunge all records of her reign.
Powerful women exist across history in all cultures. If I had to generalize, I would say that women openly wielding political power usually happened because they took advantage of some unusual crisis that trumped patriarchal norms. In many cases there was a backlash that hindered or toppled them, followed by centuries of male historians conveniently forgetting that these female rulers existed
Since no one else has mentioned it yet, despite their shared status as female Pharaohs, Cleopatra and Hatshepsut are separated by 1.5 thousand of years of time. Hatshepsut was a scion of the 18th, "Thutmosid", dynasty which ruled in the early days of the New Kingdom. Notable Queen Consort and possible later Pharoah in her own right Nefertiti was also a Thutmosid, reigning a hundred years later in the 1300s BC. Cleopatra was a daughter of the Ptolemys, a dynasty founded by the Greek general in the Hellenistic period, and the last "official" independent Pharoah of Egypt, a contemporary of Julius Ceasar in the last century BC. They were vastly different in heritage, family, political considerations, even language (Cleopatra was raised speaking Greek, as were all Ptolemys.)