Second, not all industry has high profit margins like software. Places like biotech or semiconductor can't afford 250K for a single worker, no matter how senior they are except in special circumstances. And these fields are just as critical and important as coding. In fact, one may argue that healthcare and chipmaking capacity are more critical to the country than someone writing the next iteration of Microsoft Word.
Third, if H1B is given based purely on salary, then company won't bother with H1B anymore. Imagine what happen if suddenly half the company on market no longer care about having a H1B program. Some politician will start trying to abolish it all together. Xenophobia and "they took our high paying jobs" and "those snobs foreigners get paid how much while American get paid how much?" are easy to sell.
Just a terrible hot take. Try to think broader than just your situation.