It's also illegal turn down fares by destination, to "nope" past black people, to play "credit card machine not working", to demand that you pay more than the meter reads ("tip"), etc, but that's never stopped them before.
Right, there is a difference: one is prosecuted, the other isn't. They're equally easy to find and sting-op, but only in one case do the authorities care.