They were nearly self-sufficient because the wealthy manor owners would have access to farmland and food thanks to their workers, and they would also have an army to defend them in case someone attacked. They were essentially like small states where everything was organized.