That's largely a myth, though. The vast majority of smart, driven people have no path to lawfully immigrate to the US.
By a wide margin, the main immigration pathway are family visas (i.e., marriages and citizens bringing in relatives). H-1B visas are a comparatively small slice that's available via a lottery only to some professions and some backgrounds - and the process is basically gamed by low-wage consultancies, with a large proportion of the rest gobbled up by a handful of Big Tech employers. And that's before we even get to the fact that H-1B doesn't necessarily give you a path to permanent residency, depending on where you're from.
For most people who aren't techies, the options are really very limited, basically "be exceptionally wealthy", "be a celebrity", or "be one of the world's foremost experts on X".