Answer:
The young man, in The Lady, or the Tiger?, was thrown in prison because the King found out about the love affair he had been carrying on, for months, with his daughter. Also it was not allowed for a commoner to court Royalty, even though he was one of the King's Royal Attendants.
Its to persuade and encourage tourists to visit, sight-see, and do some activities and to also spend money in the state.