I have noticed that when I have extras of a resource (rice, pig, etc) inside my cultural borders but outside the city crosses, the automated workers will go and build a fort on top of them instead of connecting them as a resource I can trade to other civilizations.