Because allowing countries to maximize their comparative advantages is great for economic growth. It doesn’t make sense for every nation on earth to have their own copy of every industrial sector. We don’t need all nations to manufacture their own jet engines, oil tankers, t-shirts, and Tylenol. Trade is good.
The idea that China is a major security threat is basically brand new. Half of century of economic policy can’t be reversed in 5 years.