The US was actively looking for key scientific talent in then devastated Germany to bring back home after World War II.
This concentration of talent, coupled with intense investments in fundamental research during the Cold War and better living conditions for scientists made it an obvious choice for any academic to relocate to the United States.
Even today, the US immigration system still has a preference for foreigners who can meaningfully contribute to the advancement of science.