Purpose and necessity in social theory