You need rare-earth metals for any modern engineering today, starting from computers and mobile phones. This is engineering. And engineering is sometimes dirty, we just need to make sure it's only as dirty as necessary.
The problem is that Greens create a black-and-white utopia where any amount of radioactivity is totally deadly and solar panels are totally clean and nice.
And everyone is very surprised to find out that oh, solar panels are also "made with dirt"!