This is kind of a stretch, and based on nothing I've read, but I think we play the national anthem at sporting events because, despite the competition, people enjoy that sense of unity that comes from a whole stadium of people hushing to listen to this song relevant to everyone in the country.