And for good reason.
While you can theoretically do this, the point is that you really can't, nor would anyone call it responsible to do so even if they weren't worried about regulatory compliance.
The question isn't "can you keep it forever", the question is "how long can you keep it". With these frameworks that answer is typically 18-24 months. For more mature systems that answer is going to be 3-5 years, and for even more mature systems it's going to be 8-10.
FOR EXAMPLE
asp.net https://docs.microsoft.com/en-us/lifecycle/products/microsof... 2015-2022 = 7 years
Angular https://en.wikipedia.org/wiki/Angular_(web_framework)#Suppor...
2021-2022 = 1.5 years. And the status is LTS (LONG TERM SUPPORT).
But it gets even worse than that because the asp.net is worrying about the _runtime_, Angular is worrying about the _framework_. If we were going to compare apples-to-apples here, the support term for asp.net is even longer than 7 years.
---
The reason so many developers don't consider this is specifically because they move on every 18-24 months, and they're happy wasting time upgrading systems on the ratwheel. But businesses aren't, instead they're held hostage by it.
---
There's another thread on HN right now with people bitching about SAP. SAP will still run functions that were written 20 years ago.