When I am a rideshare passenger I am always happy to see charging cords dangling into the back for my phone.
Maybe they will lead to tips. Maybe not. But they are bound to contribute to a better experience for the passengers.
I got packages of multiple charging cords for both phones because they are relatively cheap and over time they will inevitably break.
Plus, some passengers may leave the car with one. Sucks, but it happens.