It is not the law. H1B Visas are not meant to replace US worker force but to supplement the the workforce. It also expressly forbids paying workers lower wages. Look it up sometime. The problem is enforcement and the companies that game the system.
Never say you know a man until you have divided an inheritance with him.