100% this -- westerners love to criticize Japan's justice system, while ignoring the fact that much of it actually works.
Drugs? Petty crime? Homelessness? No other country comes close to managing these problems as well as Japan does, and Japan somehow manages to do this without descending into a 1984-esque surveillance state. Wander the streets of Tokyo at night and you will see zero drug-addicted homeless people. How many western cities could one say that about?
Darn. I don't know if I have been living in the wrong places but I never see drug-addicted homeless people in my western country at night.
Japan is changing rapidly. However it is famous for its organised crime. Japan does have a Yakuza problem and political corruption.
The virtues you mention are not a consequence of the tortuous treatment described in the post though. Conditions could rise to Western humane standards and the underlying Japanese culture that allows for such peaceful living would still remain.