NYC grants yellow taxicabs a monopoly (they're the only vehicles allowed to pick you up when you hail them on the street) and regulates the number of licensed cabs, which creates an artificial shortage of taxis. In return for these pleasant market conditions, the taxis have to play by the rules.