Ban seems to willingly let himself be imprisoned whenever he is depressed or bored.
Nanatsu no Taizai|animefacted