Summary:
If a barbarian unit comes upon a non-combat unit - settler or worker - the barbarians capture that unit. They will take it off to their nearest encampment, and the unit may be recovered by any player in the game. Should one of your civilians be captured in this manner, be sure to pursue and retrieve them before somebody else does! Great people are the exception. Barbarians will destroy a great person if they are found undefended.