After the Light of the World discourse begins, John notes that Jesus spoke these words 'in the treasury, as he taught in the temple.' The term can suggest a vault to modern readers, but the Gospel is locating public teaching.
No one arrests Jesus there because, John says, his hour has not yet come.