In recent years there have been high profile closures of big brand stores in major metro areas for exactly these reasons. Proposals to address grocery store closures include regulating them in San Francisco with a lengthy 6 month notice period and other requirements. In Chicago the idea has been floated for government run grocery stores.
While the jump to call such moves "the moral equivalent of slavery" is a bit extreme, they do exist in the realm of compelled behavior and against liberty. In the case of SF it's with regard to making it more difficult to exercise the decision to close a store, which may require the operator to take financial losses for longer and incur additional compliance related costs. In the case of Chicago, it's using tax payer money (which is collected through threat of incarceration) to operate a service that's traditionally provided voluntarily by a private actor because it yields them benefit (profits).
https://www.axios.com/local/san-francisco/2024/01/31/grocery...
https://www.chicago.gov/city/en/depts/mayor/press_room/press...