You don't punish a broken machine, you fix it. If neuroscience proves compulsion, mandatory rehab is the only logical way to actually stop them from reoffending.
Rehab also gives us feedback: if treatment lowers relapse, keep it; if not, change it. Punishment just hides whether anything actually worked.