Well, Brazil has crazy labor laws. You see a worker in court? The worker will win.
In the end it was not worth it for Foxcon. And I think a terrible outcome for Brazil. Electronics are absurdly expensive there (Think import tax 1, import tax 2, import tax 3 and in the end taxes on the import taxes. No kidding).
Stuff is often three times the price of western prices. At least in the past. It was common for people to ask you to sell them you used Laptop/iPhone/mp3 player.
"However, the promises soon proved hard to keep: the company wanted the Brazilian government to come up with 30 percent of the cash, as well as a private investor - both failed to materialize. "
"As well as the economic instability that the Brazilian economy, it is also rumored that other factors influencing the decision include the productivity of the local workforce - which at its peak reached about 2,500 workers - which Foxconn considers to be low when compared to its main manufacturing operations. "
Politics. Wisconsin is a normally-blue state that went for Trump in 2016 but may not do so again in 2020 (as evidenced by the fact that they ejected Scott Walker). It would help Trump immensely in the state to have a big foreign company with lots of high-paying jobs open up there, which is why he and Foxconn met and put out a “things are on track!” press statement immediately after the Verge broke the initial story about the project not moving.