society has made an explicit deal with a group of providers within an industry
Government is often a poor proxy for society. I suspect most people in any given US city would not like to artificially limit the supply of taxi drivers and were not consulted about the decision to do so.