The analogy you gave supports my argument: if you are easily able to switch between TypeScript and Java, you are more valuable to your employer than somebody who is unable to do that, so you should get paid more.
> when many people worked in factories under terrible conditions
As opposed to now, where many people work in offices under terrible conditions?