Why do countries try to control FDI in their nation by promoting or restricting FDI? Why was the Mer

Why do countries try to control FDI in their nation by promoting or restricting FDI? Why was the Mercedes investment in Alabama so important to the State’s economic development?