It's not up to an employer to ensure that you can sustain your life.
Your employer is buying your time at an agreed-upon price.
It's up to you to ensure that you upgrade your skills over time as technology changes.
If you're not upgrading your skills, demand for your labor will decrease over time as more people develop the same skills and are willing to work for less out of desperation.