Those who don’t know would be amazed at the rules teachers had to adhere to in the old days—in many instances, they could be fired just for getting married—let alone for having extramarital sex, let alone with a student!
They often lived in the homes of their students' parents, and they'd better not be seen with an MAAAAAN!