National defense, and (more vaguely) a responsibility to keep the host country in good shape as there's no other country they can run back to if things go bad in the host country.