Basketball does actually. The only reason is might have possibly less resonance with many people is because the gold medalist is a virtual certainty before competition because of the level of dominance that the United States enjoys over the rest of the field in terms of talent, depth, and resources.
The only reason football/soccer doesn't use the Olympics is because they had an agreement almost ninety years ago to use the various individual member nations of the different continental federations to create an event that has since surpassed any other sporting event in the world in terms of viewership, revenue, and prestige.
Rugby and cricket (the two next most popular sports in the world) don't use the Olympics as their major showpiece for obvious reasons related to the fundamental elements of their respective sports (length of time required between games to physically recuperate properly in rugby and length of game time in cricket's case).
American football is played by only two countries primarily (with Canadian football having its own rules), and a few other nations far less seriously, and could never be included in the Olympics because of its status as a continental sport.
Baseball has almost no history of international events of any consequence.