The problem isn’t with team sports, it’s with how they are managed. The school I went to had people grouped according to their ability. “A Team” footballers weren’t playing against people who could barely run.
Again, a lot of these were also done at the school I attended. We did running, both sprints and cross country, gymnastics and dance. They were all universally hated, whereas team games like basketball, football, rugby and cricket were almost universally popular.
Besides, how exactly is forcing some fat kid to run around and lag behind the rest of the class any more morale boosting than having him play badly on a team