We don't segregate, we simply offer the all-girls class as an alternative. We still have girls in our regular class and they are very chill. I'm not saying we have an issue with boys acting out, I'm saying that when we get that occasional kid who makes things uncomfortable, some girls get visibly put off by it. I train all my instructors on how to deal with inappropriate comments and to let me know about them, so my decision to provide girls with a more comfortable environment is rooted in the observation that 100% of the inappropriate comments we've had to deal with come from a male student.
When any student, regardless of gender, is uncomfortable in a class, they will pay less attention and perform noticeably poorer.