What isn't being said here, is why those stores are unprofitable.
I'd wager location and the demographics thereof has something to do with that lack of profitability as well.
If I were a big box retailer, I'd seriously consider shutting down anywhere the police have been defunded, where prosecutors aren't interested in prosecuting larceny, or even worse for some folks, and I'd light a shuck out of most anyplace that has ridiculous taxes and laws.
The reason is simple. Open season on your stock is not the path to profitability.
If thieves won't be prosecuted, the only option left is not have anything for them to steal.
Honest shoppers will suffer, but it's a business, not a charity, and the prosecutors are to blame.
Ridiculous taxes are just more theft, only the Government is actually doing the stealing instead of just looking the other way. And stupid laws increase the cost of everything, if it is even allowed.