coz they are your sponsor, and as per the LABOR LAW, it's their responsibility whatever happens to you even if you got terminated or you resigned.

However, if you were able to get your visa/sponsorship transferred within 3 months to a maximum of six months, then you'll be fine.

Coz after that time period, they(your employer/sponsor) will start the process of cancelling your visa. Only then repatriation process will start....