This is just as true with Indian students. Most people don't know how hard, how expensive, and how long it takes for someone to become a naturalized citizen. Combined with hostile rhetoric towards immigrants - and staying away from politics as much as possible, this is a big factor and not always precisely targeted to "illegal" immigration, the US is just not as attractive for knowledge workers as it was 5-10 years ago.