I've been in taxis and buses where the driver had their elderly parent, a spouse or young child seated in the front row. This didn't affect my tipping decisions.
In the DC area it used to be sort of normal that cabbies were allowed to pick up additional fare-paying riders under some conditions. This did affect my tipping decisions, in a minority of such situations.