If they just want to ask someone to pass a test and/or background check, that seems fine. If they refuse to issue one because there is a limit, that works against consumers.
Not necessarily. NYC introduced medallions because a glut of taxis we're clogging vital infrastructure and nobody could make a profit, thus safety and maintenance were compromised. Capitalism does not produce the optimal outcome for consumers when externalities are not part of the equation.