Why does the familiar مَسْجِدٌ have kasrah although يَسْجُدُ has ḍammah?

Ism al-Ẓarf: Meaning, Patterns, Paradigm and Derivation