We pay a lot. Software dev salaries have outpaced inflation for decades in the US. CS is consistently the highest paying major in US universities.
You can't train people for years and pay to do so. No company can afford to do that esp at these salaries.
If you ever interview for a tech company you learn quickly how many people applying for these jobs aren't qualified. It's sad but it's true