The problem is sociopathy and psychopathy are pathological neuropatterns which don’t respond to consequencial stimuli like guilt, shame, fear, etc. in the same manner as neurotypical people.
In short, if the opportunity exists, they will take it regardless of punishment.