That depends on how you determine if the market works "just fine".
From the pure view of the 30 year old customer: obviously. Low prices, decent quality.
From the view of society: not so much, as society has to now take on the costs that were previously paid by the employer (and indirectly the customer)... think food stamps or social security funded by taxes instead employer contributions to an unemployment insurance, or healthcare given that normal employment would have health insurance but many contractors don't.
From the view of the 70 year old customer living on pension and depending on taxis e.g. to go to dialysis treatment: not so much, as Uber, Lyft etc. have wildly variable pricing, compared to the regulated price of a taxi.
From the view of a customer or a third party involved in an accident: Taxis have proper commercial insurance that picks up medical costs of people involved. Uber/Lyft/other companies? Not neccessarily and either people are left with the medical bill alone or society has to pick it up.
The "gig economy" is only so cheap because a lot of cost factors that made the regular services so expensive are now picked up by society at large.