I have to wonder, after all, why dwarves or drow would craft magic weapons that shed small amounts of light. They have darkvision so it's of very little help to them,
Color. Darkvision is black and white.
Distance. Darkvision has limited range.
Brightness. In 5e, darkvision works better in dim light.
And, ignoring all that, they might not have a choice. Sometimes magic glows whether you want it to or not.