Because it's not the only driver, it's the most important driver of the money making part of your life. Which is turn is just a means to another end, and that end is your family, hobbies, self actualisation, experiencing the world etc.
Let's ignore there is not much value coming out of education and that people mostly succeed despite having to go through the grind of an antiquated education methodology (which is the only way to certain professions). Let's ignore that better teachers can actually go to private education and get a higher salary.
Software developers can create software solutions that automatically do the work of tons of people (think about how much time is saved by an online checkout vs maintaining a physical store with employees). It's obvious that software is a great way for companies that want to multiply their revenue and that's the most efficient way to generate value for society at scale.
It's therefore obvious that people capable of delivering that solution have more value compared to a teacher.
You may not like Amazon, but people derive benefits from Amazon all the time. They can get stuff directly at home in a day. They can pay online without even seeing a store.
That's a lot of units of small value for the general public being created by the Amazon employees and Amazon itself.
You may not like where society is going, but people choose with their own wallets what they want or not. This is pure democracy.
As a teacher, this is absolutely not true in the way you’re describing it.
Not even this, it's just seeing a job exactly and only for what it is. As opposed to having some pompous judgemental false self-image of "helping the world" when in reality you are way too lazy and selfish to actually do that, like most other people.
It's a common leftist agenda to push and impose this culture of covering up mediocracy with virtue signalling pretending that it's actually a conscious choice and really better to make less money, not just being mediocre. The fight against rationalism and meritocracy, lazy intellectual leftists grasping at straws now starting to sound religious about how your soul will go to hell if you work for google. Give me a break