It is weapon dmg not related to spells.
Almost all weapons in the game have 2 types of dmg. Melee and magic. Magic based on intelligence and melee on str. Same with bows just instead of str it based on dex.
For example at the moment I have 390-450 melee and 120-160 magic. That doesn’t really reflect total dmg but give a good idea what weapon to use.
You can raise spell dmg by adding skill points.