BG3 handles them as a separate race for convenience sake, but Drow are Elves, and Elves are proficient with longswords. That's also why.
But DROW elves are proficient with rapiers and shortswords. NOT longswords so I see no point in your comment. No offense intended.
Yeah, Drow as a subrace. They're supposed to be under elves, and elves should have longswords, scimitars and all bows. Because it's tied to race. Drow are supposed to fall under this category, and get crossbows and [possibly] rapiers on top of that. I say possibly because I'm unsure and too lazy to look it up.
But BG3 handles Drow separately, so they don't inherit the Elf stuff. But that's an oversight, really - Drow totally SHOULD have longsword proficiency.