With macOS and app sandboxing, and (a lack of) full disk access for Terminal app (and the defaults command), and Hilarity Ensues…
…or…
How the security-related pieces of macOS can sometimes fit together in unexpected and unhelpful ways:
https://lapcatsoftware.com/articles/containers.html
This particular case for Safari browser, but most any sandboxed app will follow this pattern.