The entire point of a temporary visa is that the host country can refuse to renew and force you to leave the country at their whim. When you apply for such a visa you accept those terms.

The entire point of a temporary visa is for the country to benefit from your labor. How does canceling it on a “whim” benefit anybody?