If the software is made properly in the first place the company doesn't
HAVE to provide support for 25 years - mind you some big organisations are still using well written software from the the 1970s and 1980s because it wasn't made with deliberate faults.
I've no trouble with a company putting a support lifespan limit on what they make, heck, they all do it. But there is a difference between making them all good and making them designed to be useless after a few years.
The people using XP after 10 years are doing so despite all MS can do to get them to change to the other versions of Windows in between.
BTW In case you don't know, Microsoft talked a lot of companies into using MS DOS as the OS for the embedded OS in a lot of computer controlled manufacturing and milling equipment - that gear had a designed lifespan of 50 to 75 years; it's one reason why MS still has copies of MS-DOS available from their major HQs today as replacement copies for that gear.