During ancient times, if you were a princess of small kingdoms that were in alliance with larger kingdoms or Empires, you would be sent to be the companion of the queen or the princess of the larger kingdom.  It was a form of hostage, but also a place were you would be noticed by other princes who could form alliance with the small kingdom by marriage, under the approval of the Emperor