That's irrelevant to the point, which is that whatever prohibits Uber today also prohibited Uber in the recent past before Uber existed. Did unregulated taxi service make sense to a city 5 years ago?
Just because a law has been on the books doesn't mean the law continues to be in the public interest, especially when it was enacted before the technology to enable Uber was widespread enough to make Uber possible.