A lot of schools charge admission to watch the sporting event, so even though the kids don't earn any money (and many times have to pay to play) the school makes a fair amount of money from the sports. The better the coach, the better the team. The better the team, the more people will come and watch. The more people that watch, the more money for the school.