Once upon a time, D&D made a big distinction between swords and magic swords. As an example, you could attack a Gargoyle with a sword and to zero damage but if you had a magic sword, you'd do full damage. I haven't studied recent rules before playing BG3 but it's possible this explains the mechanic.