Also, nobody forced US companies to sell those assets.
The history and asset ownership is also quite convoluted. Try this Wikipedia article:
https://en.wikipedia.org/wiki/Neo_Performance_Materials
This article is quite good at explaining how China cornered the market:
https://thehustle.co/originals/what-the-hell-are-rare-earth-...
Not that it's very surprising (US companies routinely do this as well, especially in Europe), but in this case it had clearly an ulterior motive.