وَإِذَا عَطَفَ عَلَى الضَّمِيرِ الْمَجْرُورِ، يَجِبُ إِعَادَةُ حَرْفِ الْجَرِّ، نَحْوُ: «مَرَرْتُ بِكَ وَبِزَيْدٍ».
Translation: When coordinating with an attached genitive pronoun, the preposition must be repeated, as in “I passed by you and by Zayd.”
Because the first object of the preposition is the attached pronoun -ka, the book repeats bi- before the second conjunct.