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.