In medieval there are no prison, except for noble which can be ransomed or for political prisoner. Even the prisoner can seduce one guard, she need to go outside in the heavily guarded castle.
Why the hell is a guard trusting a hoe tossed into imprisonment for scamming? He totally deserved to die. And hot damn, those pages of suspects prolly mean a lot of the staff are bad.