If your device locally analyzes your behavior and files, then Apple itself is not actually collecting and analyzing your data. The "locality" is a fundamental difference in who is doing what. If your private information never leaves your phone, your privacy is still fully maintained.