If you move a factory overseas the accounting is more complex than just lowering your domestic operating costs. Not to mention that international financing and tax laws bring a bunch of interesting tax dodges and loopholes into play.
Plus you get to work in the add-on costs of not having the money spent for the factory’s upkeep, utilities and worker’s wages spent in the country.