It's neither the drivers nor the customers, either. When I need a Lyft, I don't get a choice between three drivers with various star ratings - I enter my location, and someone accepts the ride. The rating is only good for the employer.
The rating also benefits the customers. You don't get a choice between drivers, because only drivers with a high enough score will be allowed to continue on the platform. This might be harsh to the drivers, but it makes for a good customer experience. It's one of the reasons why the experience of using Uber/Lyft is so much better than the experience of using most traditional cabs.
Unless Uber/Lyft decide that below-4-stars rated drivers can keep working for them... they just receive a smaller cut of the price paid by the customer.