In the US at least, this was mostly state governments trying to define "essential commerce", rather than preventing the sale of things that might lead to large gatherings. The idea was anything you don't need to stay alive, you don't need to be buying.
The armed standoff in Michigan was a direct result of this, Governor Whitmer banned the sale of home improvement goods (such as paint) and garden supplies (including seeds), in the spring, while ordering most of the population to stay at home. This was perceived by the population as unreasonable, and those restrictions were rolled back within a week of the protests.