Tennis and golf used to be an elitist game whereas basketball and baseball and soccer a game of the people, assuming I'm right. That may be true in the USA but what about other countries?
Soccer requires a ball and some open space. When I was in Haiti on a deployment from FEMA doing rescue work, the kids would play on dirt with a ball of rags. While sad, it really shows just how little funds it takes to play futbol.
Basketball is a little more, you need pavement and at least one hoop and a ball. But still in the grand scheme of things is a very cheap sport to play.
Tennis is a cultural thing I think, as its more like basketball in a sense that equipment is fairly minimal and a court is a court once made. They don't require a ton of upkeep either.
Golf, is elitist because it simply has to be. It requires big tracks of land, maintainence, etc just to be playable. Then high dollar equipment, lost balls, clothing, etc and golf is easily a sport with a ton of barriers for entry if you have less money available for entertainment.
It doesn't matter what country you are in, what sport is popular can generally be predicted by the local economy.