It wasn't her, it was another student that had the relationship with the teacher. Sakura had a one sided crush on her brother's friend (later implied boyfriend).
Her father though, met Sakura's mother when she was a high school student while he was a teacher.