Even assuming they sold every single Raspberry Pi at 100% profit, 350 million across 5000+ stores is 70k USD per store. Even with a lot of accessories sold, that's probably not enough to keep the whole operation afloat.
The problem with a strategy like that is it's hard to be better than everybody else who has the same idea. Perhaps their mistake was opening so many stores in the high-rent areas in the first place; it didn't really mesh with their original core market.
I took the grandparent post to be one example of how to execute a greater strategy. This would presumably be one way to appeal to electronics enthusiasts, among many.