Why was cleopatra queen of egypt?

Cleopatra became Queen of Egypt because her family was a dynasty. She ruled alongside her father at first, then with her brothers, and lastly, by herself.