Because the US hardly manufactures anything these days. If you don't manufacture, you don't need to import rare earth base materials.
Also, the US has something called the strategic reserves:
https://en.wikipedia.org/wiki/Defense_National_Stockpile_Center
And yet Wiki also lists the US as the #2 Country in the world for manufacturing industrial production...