In case of invasion, it's not that unlikely that the fabs in Taiwan get destroyed, or at least lose the ability to keep making and selling chips while the conflict is hot. In that case TSMC and Taiwan might prefer having a backup. As long as the US doesn't confiscate the Arizona fab, effectively siding with China, Taiwan would arguably have more leverage by still having something of immense strategic value to trade.