Why can the endings differ in khalā Zaydan and ḥāshā Zaydin?

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