The teacher has a position of power. same as if you're a carer for mentally challenged people and you have sex with one of them, it doesn't matter how "up for it" they were, they don't have the capacity to make that decisions, and you've abused your power.