«جَاءَنِي الْقَوْمُ إِلَّا حِمَارًا» = disconnected: the group is named, but a donkey is outside it.
«مَا جَاءَنِي إِلَّا زَيْدٌ» = mufarragh: no base is mentioned; Zayd is the subject.
They answer different questions: Is the item within the group? Is the base explicitly mentioned?