There have also been cases where a customer violated Amazon's terms of service and lost access to all of their Kindle e-books. Amazon has all the power in this relationship. They can and do change the rules on us lowly peasants from time to time.
Note, there are indeed ways to download your books and import them into something like Calibre (and remove the DRM from the books). If you do some web searches (and/or search YouTube) you can probably figure it out.
same goes for steam, epic launcher, etc. with the exception of gog
(though generally if steam removes a game, they at least let you keep your copy if you already own it)
GoG, and physical games are only licenses as well. If you have any physical games from the era of instruction manuals you can find it laid out clearly inside, generally towards the end.
But GoG's offline installers and physical games can't be taken from you by the publisher etc (servers for online games and updates aside).
Neither can installed copies of games if you write protect the files, back them up where the launcher can't get to them, etc. Licensing, DRM, and legality really aren't the defining factors here. There are shades of better or worse, but at the end of the day it's about simply being able to back up the media in a form that can't be touched by the corporations.