Why did the narrator pursue close friendship with Abū Zayd?

The Ḥulwān Maqāmah: Companionship, Poverty, and Parting