Why does the lām differ between «بِسْمِ اللَّهِ» and «نَارُ اللَّهِ»?

Al-Māʿūn and Al-Humazah: Applied Assimilation, Concealment, Madd and Hāʾ Rules