In my country, it's illegal for the taxi driver to decline the customer unless it has valid reasons(the customer is violent or threatening, does not satisfy the hygiene standard, road is damaged etc).
I think it's a fair regulation for it will casually lead to the discrimination.
Also, in my country, being a taxi driver requires special license and certified car so Uber/Lyft doesn't offer the service. They don't want to pay the cost of checking if the contractor satisfy the requirements of license and car.