It seems like Luz didn't consider the fact that there might be an actual guard watching over the prisoners in Warden Rath's Jail, much less a mind flayer.