The idea behind gender segregated classes/courses is about performance, but rather about social expectations and provided a space with less bias than a mixed gender setting. Whether or not this works is one thing, but this isn't about hampering performance.