Why is Zaydin genitive after ghayra?

Al-Mustathnā: Connected and Disconnected Exceptions, Four Case Rules