Is this deliberately intended to be a stupid question?
The bags were in the aisle, and had to be carried out to speed the exit from the plane.
Even the food from the pantry was in the aisle.
Ah. Just grabbed whatever bag is at their feet and go.
So once they got to the terminal they got together and returned each bag to its rightful owner.
That had to be it. Sorting them out while still on the plane would be insane.