Taiwan did everything they could to lead chip fab so the US would find them geopolitically valuable. It's not a coincidence this scenario came about.
Of course these countries want to keep the US, China, Russia, etc "interested" to give them more goodies - tech/markets/access/etc. The more suitors, the greater the competition, the more plentiful the gifts.
Vietnam is doing this right now with china and the US and getting investment/political favors/market access/etc from both.