Time and time again we see the US moving production of some key product or material overseas only to regret that decision a number of years later. It happens over and over again. Market forces are great, but should be ignored in key sectors that are important for national security. That goes for rare earth minerals or shipbuilding or key supplies for munitions or PPE that we needed during the pandemic, (etc.)
National security considerations can adapt to market forces by either directly subsidizing the domestic product (so that it will be as cheap as the foreign product) or establishing tariffs on the foreign product (so that it will be at least as expensive as the domestic product) or by outright banning the import of the foreign product (so that only the domestic product competes in the domestic market).