Rare earths are a group of 17 heavy metals used to make magnets that are crucial to the auto, electronics, and defence industries.