It's probably cuz the prison has no way other than "shoot them!" to handle casters. It makes sense that prepares casters would be Sol but spontaneous ones would be OK as they'd figure out ways to sleep.  Even if it means subtly casting the spell on themselves.