مَرَرْتُ بِزَيْدٍ وَعَمْرٍو: the first prepositional object is an overt noun, so the second noun can be coordinated without restating bi-.
مَرَرْتُ بِكَ وَبِزَيْدٍ: the first prepositional object is an attached pronoun; the book requires the preposition to be repeated.
This is the grammatical formulation used by this text; it should not be confused with differing analyses elsewhere.