A market is a place where you can, relatively freely, choose to buy, sell, consume, and produce.
San Francisco and many other North American cities only allow the first three of the four with any significant freedom.
Production is either banned outright on large majorities of the available land, or heavily constrained and focussed to ensure that any new production happens directly on top of tenants and the most vulnerable rather than on top of relatively lightly occupied single-family houses.