"'Then let the girl who pleases the king be queen instead of Vashti.' This advice appealed to the king, and he followed it." NIV translation
The winner of this "beauty contest" would be queen but what about the losers? They would be a permanent part of the king's harem and that is not what God has designed for women.
"Now there was in the citadel of Susa a Jew of the tribe of Benjamin, named Mordecai son of Jair, the son of Shimei, the son of Kish, who had been carried into exile from Jerusalem by Nebuchadnezzar king of Babylon, among those taken captive with Jehoiachin king of Judah." NIV translation
Now, we are introduced to Mordecai whose great grandfather had been carried into exile to Babylon.
Mordecai was still in Susa instead of going back to Jerusalem as instructed by God therefore he was being disobedient and was outside the will of God.
"Mordecai had a cousin named Hadassah, whom he had brought up because she had neither father nor mother. This girl, who was also known as Esther, was lovely in form and features, and Mordecai had taken her as his own daughter when her father and mother died. When the king's order and edict had been proclaimed, many girls were brought to the citadel of Susa and put under the care of Hegai. Esther also was taken to the king's palace and entrusted to Hegai, who had charge of the harem." NIV translation
Now, we are introduced to an orphan girl who has been adopted by her cousin. Esther, whose name meant "star" was a lovely girl and Mordecai had raised her as his own. This all sounds well and good until we see that his disobedience leads to giving her over to what we would consider prostitution. Because Mordecai had not obeyed God and went back to Jerusalem, he was there and entered Esther into this "beauty contest". If she won, she would be queen but, if she lost, she would just be another woman that was kept for the physical pleasures of the king.
"The girl pleased him and won his favor. Immediately he provided her with her beauty treatments and special food. He assigned to her seven maids selected from the king's palace and moved her and her maids into the best place in the harem." NIV translation
God takes care of His own even when they aren't seeing it. When Esther was taken to the man in charge of the beauty contestants, he showed her favor and moved her to the head of the line. She was immediately the favorite to win the contest.