It's 100% got to do with racism - https://archive.ph/6NUEN
Protectionism is the excuse. Just like many excuses have been used in the past - "national security" to justify internment of people of Japanese origins, "states' rights" to justify slavery, "forced busing" to justify segregation, among many others.
Now it's "DEI" to justify racism against African Americans, and "H-1B" to justify racism against Indians.