Charging people for company-specific training is exploitative. It's not a charitable act on the company's part; it's necessary to create, maintain, and grow a competent workforce. Also, training is often marketed as compensation, and companies can't have it two ways: it's either compensation or it's not, and if you market it as such then clawing back the "value" of training is as unethical as clawing back the cash you paid the employee for the time they were there.
I've had a few experiences interviewing South Asian guys on H1-B visas where they were trying to game the interview really hard and it was awkward at the time and I was angry after the fact that this person had made it past a phone screen. Reading what life is like for these guys, I'll have a little more empathy next time.
https://www.sfs.opm.gov/