Why is Zayd in the genitive in «مَرَرْتُ بِزَيْدٍ»?

Asmāʾ al-Afʿāl — Definition, Uses and Parsing