The old pervert using his camera shouldn't be doing that. His behaviour was not OK.
Nobody is talking about keeping kids off social media because their behaviour is not OK. They're talking about keeping kids off social media because they believe it's harmful to them, and that the companies designing the products know it's harmful and addictive.
We can disagree about whether or not that's true, or what actions might be helpful (or not), but there is no common thread with the example given.