From Old Norse fyrir því (at), from fyrir (“för”) + því (“ty”), dative singular of þat. Compare also English forthy (“therefore”) (obsolete), Danish fordi and Norwegian fordi.
förty