Why does زَيْدٍ take kasra in مَرَرْتُ بِزَيْدٍ?

Noun Case Classes: Type 1 (Ḍamma, Fatḥa, Kasra)