Partly consumer laws around support/warranty, cars are required to be provided with spares and support for a "reasonable" amount of time (as in Australian and EU law). But if the electronic service was a separate line item/product and only limited in time then they can end it when it suits them.
Consumer products, TV's, cars, etc have had laughably short support periods for their firmware/apps even where they provide major functions of the overall product. In the bad old days updating the navigation maps was a $$$$$ service item and you'd be lucky to get something a few years out of date even if you paid.