GM, Toyota, Ford, VAG, et al are mobility companies. They need to answer to their shareholders even if the model of traditional car ownership is changing.
GM took stakes or ownership in Cruise, Lyft, and the recent electric truck to compete against Tesla as well as entering a partnership with LG for BEV batteries. They also shedded what wasn't useful. Toyota doubled down on Uber, Getaround(to compete against GM's Maven and Daimler's Car2Go), Didi and a few other things.