Esther was taken into the king’s house as part of a search for a new queen (Esther 2:8–9). The king loved Esther and set the royal crown on her head, making her queen instead of Vashti (Esther 2:17).
After the king’s order is announced, many young women are collected at Susa, and Esther is taken into the royal household under Hegai’s supervision (Esther 2:8). Hegai quickly favors her, provides beauty preparations and food, assigns her seven attendants, and relocates her to the best area in the women’s quarters. This unit sits inside the larger sequence where the court searches for a new queen after Vashti’s removal (Esther 1–2). The story moves from a broad royal policy (gathering many young women) into focused attention on Esther’s experience, showing how she is positioned within the palace system.
Esther 2:8–11 shows Esther being pulled into a powerful imperial system that she does not control. The king’s order results in “many young women” being collected in Susa and placed under an official’s custody; Esther is “taken” into the king’s house under the same supervision (explicit in verse 8). Within that system, Esther receives unusual support.
A careful answer keeps the immediate passage, the book's argument, and the whole-Bible storyline together, so the question is answered in context instead of as a detached idea.
Start with Esther 2:8-9, then read the surrounding section so the answer stays connected to the passage's flow.
8So it happened, when the king`s commandment and his decree was heard, and when many maidens were gathered together to Shushan the palace, to the custody of Hegai, that Esther was taken into the king`s house, to the custody of Hegai, keeper of the women.
9The maiden pleased him, and she obtained kindness of him; and he speedily gave her things for her purification, with her portions, and the seven maidens who were meet to be given her out of the king`s house: and he removed her and her maidens to the best place of the house of the women.