Why did Cleopatra became queen of Egypt?

A magical potato visited her in her sleep and told her to build a house out of dirt. After she built the house, a man came up to her and blew up. She woke up as queen of Egypt.