Its mentality of general public. As said by someone, People act good as they haven't got chance to be bad.
A average person when looks at a girl roaming with boys at night doesn't have great opinion. This raises evil thought in mind and let to commit heinous crime.
Criminals of this kind should be punished severly and publicized under the Rule of Law. Whenever evil thought arise in anyone's mind, the punishment should send jitters in their spine and stop them from committing heinous crime.