SAN FRANCISCO—A fare war between Uber and Lyft has led to billions of dollars in losses for both ride-hailing companies as they fight for passengers and drivers.
But in one way it has been good for investors who snatched up the newly public companies’ stock: The losses have scared off the competition, giving the leaders a duopoly in almost every American city.