It was confirmed that Ryougi was manipulated by genjutsu and it is not like he killed anyone, so why did he get send to jail?
Orochimaru killed the 3rd Hokage and the Kazekage yet no jail.
Danzo was involved in Nagato, Yahiko and Konan incident, Kabuto turning evil, Kabuto mum dying and even...