Some software companies are making huge profits today. Many software jobs are at companies making returns comparable to other engineering job profits. There's also a supply side. If the market is flooded with a lot of people in it mostly for the money, salaries will supposedly shrink.
we've seen that most of the people who are only in it for the money don't actually bring much value to the company. a lot of middling software engineers are actually a liability. unlike operational work, engineering needs to have a higher bar than just a beating heart and hands