This isn't entirely accurate.
I mean, yes, Drow are subterranean elves, I'm not denying that part. But, no, Drow are just a subspecies of Elf that did end up living underground, and therefore ended up adapting to life underground, and not some magical state that evil elves become. There was a period in the cosmology where a group of elves may have "fallen" from mainstream elvish society, creating the basis of the Drow, sure. But in the time of actual gameplay, they're just different cultures by this point; no evil elf becomes a literal Drow. As I said before, dwarves actually are labeled as "usually good", which means it's definitely not the fact that they're a subterranean society that makes them evil.
But regardless, and I know I'm opening a can of worms here that people hate me for opening, I just find it really interesting that of course the Good races are coded as civilized and white, while the Evil races are coded as wild and non-white. I've talked to death about orcs in the past, so I'm going to leave that one be. But Drow are definitetly coded as being the one elf subspecies that just so happens to be consistently not white as well.
In fact, they were even orgionally given African-colored skin in their initial artwork. That eventually changed to giving them literal black skin, but frankly that still is screaming "these are supposed to be black people". And there's no way around this; if we try to argue that Drow are literally black because of adaptions living underground, why aren't the Good Dwarfs also black? They're white as snow! If we try to argue they obtained their skin color as some sort of effect to their initial fall, then congratulations,
we're literally and unironically regurgitating slavery apologetica.
Good and Evil, as they are used in the world of D&D, is fundamentally racist. It has to be, because the concept of a race is biologically true in the universe in itself. But the fact it relies on tropes from our own history of racism, and present them as literally true in the fantasy world, that's wholly unessecary.