No, and you know that's not what anyone is saying. Shitting in public, or in other people's private areas, shouldn't have zero consequences simply because the ultimate consequences sound harsh out of context.
And yes, because jailing someone who has sunken to pooping on the street is generally an important part of their treatment plan. Not letting people live in squalor is actually kindness, even if the alternative is enforced.
> such harsh measures in secret
Oh my. Are you serious? Harsh measures? Some people try to raise children without rules and they always do more harm than good. Especially trying to avoid such simple rules about reasonable boundaries.