1) The market can support multiple players running profitable (i.e it's a 2 player or 3 player market). Think of the drugstore industry (Walgreens & CVS). 2) Lyft focuses on profitable higher income markets like the US and Canada so they can have a higher margin and not get into pricing wars with massive foreign players (Didi, Oola, etc.). Uber is bleeding cash in their foreign markets. 3) Lyfts valuation is more reasonable relative to their numbers than Uber's. At the end of the day your investment thesis should not be just on the company but also the price you are buying at. 4) Lyft could manage their costs better and hence be closer to profitability to Uber (this is a pure guess but seems possible)
I have been pretty successful investing in 2nd players when they are priced correctly.