You can apply the same argument for illegal immigration and import from countries like China which flout labor and environmental standards.
But people who oppose H1B don’t seem opposed to that.