Two things to add:
1: Wisconsin has a bit of a history of subsidizing ambitious projects with poor odds, the DeltaHawk diesel aero engine company being one example.
2: In the US, these projects often rely heavily on "tax increment financing," in which the subsidy comes in the form of reduced property tax rates. The remainder, if any, is often a loan.
If Foxconn builds a factory on low-value land, then even a reduced tax rate might still produce more revenue than the site did before the factory was built. If there are loans, they'll probably be similar to what Tesla received.