As an outsider I assumed it took GM a substantial investment just to realize how far out of their depth they were. It made sense to cut their losses once they figured this out.
Having experience and capability to manufacturer cars has approximately zero benefit to create a self-driving software/sensor stack. It would make more sense for Adobe to create a self-driving car than GM.