Why can ghayru be nominative in this sentence?

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