The key word here is “server”. Optimizing memory server-side directly translates to cost savings for companies. There is a lot less incentive to optimize memory for code that runs on the user’s computer.
That's a clever observation and is very true. Development time tho historically was also very expensive hence push for easy to work with dev stacks such as js
There's plenty of incentive if it causes your users to churn.