I'm a retired teacher.
Studies have found that both females and males learn more in segregated classes in schools. Boys are more agressive and speak up more in class and girls tend to sit back and not ask questions even though they do not understand a concept when boys are present. Boys tend to misbehave more in mixed classes trying to impress the girls.
We don't want to admit it, but it is still pretty much the same after we become adults. The gym where I work out has 1 workout room that is male only on, or female only on alternating days. On the days it is male only the room is empty. On female only days it is packed. Many women will not work out when men are present. I can see the same with learning how to shoot.