I understand that it's an independent polity, but it's also surrounded by other urban areas.
I can get a 51 minute bus ride from an apartment complex in East Palo Alto to a Safeway, which does cost about $5 but that's a discussion for another day; my point is, East Palo Alto only has "one grocery store" if you ignore everything surrounding it.
https://www.google.com/maps/dir/Runnymede+Gardens+Apartments...
Many people prefer only going to the big stores, such as Target and Costco and other large regional or nationwide companies, so not much room left for independent owners unless they’re in a very dense area where there’s enough people wanting to go to their smaller stores.
There's only one real grocery store (Mi Tierra Linda) on the east side of 101, and the other side of 101 is mostly residential. You don't get much more shopping until you get close to El Camino, and most of the grocery stores you'll find there (like the Whole Foods near the Palo Alto train station) are targeting a much more upscale market.
https://en.wikipedia.org/wiki/Havre,_Montana
http://havrechamber.com/business-directory/category/grocerie...
(Gary and Leo's IGA is the grocery store. McLean's Grocery is a convenience store that sells some food.)