The fact that it happens says nothing about whether it's right or not. In my opinion it's wrong and immoral that taxis can't refuse to service you. But taxis are very regulated in many places. In fact, for example, Uber is illegal in Colombia. And still, despite their legal status, Uber is not only very used in Colombia, but it's also safer than getting a normal taxi.