As someone who leans right I wouldn’t call this socialism. People are still paying for the food. Everyone is just subsidizing the option of having a close grocery store. Now if your price was inversely proportional to your income, then we would be talking more about socialism.
I feel the same way about generic drugs. Why not left the federal government run a drug company to produce commonly or off patent drugs. I’m not saying give them out for free, but a non profit approach would be appropriate.