Employers just hire experienced h1bs instead, they won’t leave after being trained, no reason to hire an American
And Americans leave because employers will just replace them with offshoring and h1bs to save money. It's a self perpetuating cycle. Loyalty goes both ways. Employees finally realized that they should be treating employers like employers have always treated employees. That's capitalism.