Yepp. So either they would have to require a maintenance fee or charge a higher price for the soctware.Windows 7 has been out of support for 3 years, but you can update to windows 10 for free. Asking companies to support obsolete software costs millions. They can make laws however you want but there is a cost associated to those laws.
Since health care software was mentioned, for all the systems I have seen, there is a maintenance fee (up to 20% of the list price per year, depending on the level of service the customer wants) which takes care of technical service and updates and sometimes upgrades.
pibbuR who most likely won't last 30 more years.