To put it in context this was the last of a series of programmes looking at offenders and trying to ask why they offended.
It is very hard to take on the task of trying to prevent sexual offences without actually engaging with the offenders. This does not imply that their behaviour is condoned, nor that work with them does not emphasise the impact on the victims.
I did find it interesting that this man was a friendless loner as a child who found that he got attention from exposing himself, but that this attention was insufficiently negative for him to cotton on immediately that it was unacceptable. A school friend was expelled from school for the same thing, but not this man.
He had higher education, a job, married and took a conscious decision not to have children because he feared what he might do.
We all find it very hard to understand why people behave in this way when there is such a strong social taboo against it. There is clearly some fault in their socialisation. In order to know what that might be, we do need professionals to engage with them and delve into their pasts. But, as others have said, engaging with them implies to some sympathising with them and minimising their crimes, so this deters the engagement that is needed for prevention.
We cannot just ignore it till a crime is committed and a victim created. Providing services where people who have these inappropriate compulsions can come forward and get help is not going soft on them, it is trying to protect society.