While I agree it is not, but considering all other options, they decided to go with this, and if you think about it, they are facing two yonkos they know what risks to take and what to avoid. Luffy can counter Zeus, they cannot do it. So, it was indeed smart of them to lock him up.