
I've a feeling there's a bug here somewhere.
What I guess is happening is that the city state is producing workers and the barbarians kept capturing them. So the city state made more workers and the barbarians captured some more. Then some wandering AI nation caravel came past and killed the barbarians but not the workers, so the workers are wandering about.I wouldn't like to say what the bug is but there's clearly something nonsensical going on.