Sidenote: this phenomenon is known as the Gell-Mann Amnesia effect.

Maybe more relevant is "Engineer syndrome" — the tendency of technically minded individuals to assume that their expertise in one area makes them an authority on everything

See also Nobel Disease https://en.wikipedia.org/wiki/Nobel_disease

I think the problem overall is just that we live in a society that conditions us to get validation from the size of our paychecks. Software engineers get a fat paycheck and think "well I must be really smart. Why else would society compensate me like this?". I'm sure it's a problem in all sorts of highly-paid fields. I'm always shocked by how many physicians I see write massively ambitious, terribly researched generalizations (see Jared Diamond and the experts in relevant fields that will spend the rest of their lives dispelling myths he spread)