Anecdote- most of my skilled friends working in chip fabs jumped over to software jobs a few tears ago. Software pays better for easier and significantly less hazardous work.
So many fields that require high skills and a lot of education pay far too little compared to software/analytics. One works just as hard but the pay is not comparable - it doesn't make economic sense to do a lot of the non-software jobs.