Boy Scouts and Girl Scouts are allowed to exist. But I, myself, think their gender segregation is gross.
There are male and female sports teams for the same reason heavyweight and lightweight boxers compete separately: we recognize that there's a meaningful difference in type of bodies and so we segment them into different groups for competition. But not that the reason for separation, here, is not gender; it's types of bodies.