I live in a small town. If a teacher is spending too much time in a local pub, getting throw-up drunk too often, the community will know about this. I would not want my kids to be around this teacher. If the teacher is seducing students from a different school, I would not want my kids to be around this teacher.
In my ideal world, all organizations would their own rules and standards about off-work behavior. Those standards should be well communicated beforehand.
We may need some government intervention. For example, I believe that Christian Colleges do have the right to hire people for their morals. But the local fast food restaurant or construction site does not.
I used to have a small oilfield service business and had to hire people. Legally, I cannot put in the job ad "Smokers need not apply." But if I smelled tobacco during interview, the interview was over.