Kids need freedom to make their own decisions, without that they won't grow to be self realized adults.
For this specific issue, the solution is simple and straightforward: shaming. None confronted the pervert in the train, because no one knows what is acceptable today and what is not.