The deal, which is expected to close in the third quarter of 2021, brings to an end Lyft's four-year journey toward developing and deploying its own self-driving cars. The company follows its rival Uber in off-loading its costly autonomous vehicle division in a bid to stop losing so much money.