Comment by fmajid
Yes, but because the H1-B holders have to find a new employer within 2 weeks or lose their visa, the threat of firing is the same thing as deportation, making for a form of indentured servitude. That forced loyalty, more than the salary, is the real draw.
It's 60 days, not 2 weeks, and you can transfer an H1B over to a new job within that 60 days, or if you know you're going to be terminated (e.g. you're on a PIP) then you can transfer the H1B to a new employer anyway.
Wouldn't say it's necessarily easy to do so, but it's not an automatic deported from the country kind of deal.