Exactly. Just like how Bitpanda and NXP used to relocate foreign workers and their families to Austria, then fire them when some shit hit the fan, leaving them to fend for themselves.
Moving countries with your family, especially to ones where you have no connections/family/support network and don't speak the language, is incredibly risky unless you're very well off or very talented in a skill that's in high demand where you move.
Like you said, you and your family are at the mercy of your line manager, at least for the fist few years till you get enough credit to qualify for social support and build a support network, so foreign workers tend to put up with way more overtime and unreasonable demands, because they don't want to risk loosing their jobs so soon after investing huge amounts of effort, time and money in relocating their families.