Precisely, Stephen. If we purport to be human beings, oughtn't we to be seeking ways to help those who committ sin/wrong-doing so that they are able to be productive members, as opposed to destructive members of society? Or are you like Floo who has, in the past, suggested that restorative justice - as this approach is called - has no place in our justice system? Restorative justice may include medical intervention, counselling, and various other elements.
Clearly we need to deal with people who cause harm to others in society. The question of how we best do that is a complex one.
FYI, I don't support punishment, such as imprisonment, simply for the sake of revenge, although I accept that in certain circumstances, such as someone harming a child, then I would likely want that.
Not sure I want people to be "productive" members of society, but simply to allow others to live their lives as they see fit.
Any intervention must be based on protecting other members of society from people who wish to harm them and assisting those who wish to change.
For those who seek to harm but show no desire to change, I would suggest keeping them away from the people they wish to harm and trying to demonstrate to them the harm that they cause until they have desire to change. Obviously this does not just apply to paedophiles.
Anyway you seem to have some ideas that Floo disagrees with. I can't comment unless you outline what those views are.