You had been captured.
After failing to defeat Cruel King you were put into the dungeons. You weren't chained or anything, you just sat there while a guard slept in a chair. You assumed that he was supposed to be watching you, yet wasn't. You heard mutterings from upstairs from peasants and guards, with the occasional voice of the king.
You sat in your musty cell, while the guard slept. You were stripped of your weapons, yet kept your clothes, thankfully.