As
@KYli pointed out, there's a difference between corporate interest and national interest. Companies, no matter what they say, are loyal first and foremost to their bottom line. The government is responsible for safeguarding national interests. For example, pre-Trump, it was in the corporate interest but against the national interest for Chinese semi companies to buy foreign tools instead of investing large amounts of capital into developing domestic supply chains. It was also in the corporate interest but against the national interest for American companies to offshore large, critical chunks of their production into China.
A business decision can make maximize returns while at the same time going against national interests. This is where the government must step in.