Did you know that in ancient Egypt, women had practically all rights as men?
We generally think that the more we go back in time, the less rights women will have, this may be true, but not for all cases.
Among their freedoms were: to divorce, marry whomever they want, to own and manage property, etc. Only a few public offices were not allowed.
This helps us to understand why Cleopatra didn't have much trouble staying in Egypt's power.