Spam filtering can be done as the email streams in. Email databases which power the spam filter can be de-anonymize do and reduced to statistics.
I guess sharing is harder but it can still be done. If I share content with you, I'm giving you permission to have a copy so it can be encrypted with your key as well as mine.
Outlook works just peachy searching my GB's of emails and attachments from its local replica, using the internet only to sync.
[1]: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_A...
And I don't want to waste power and time syncing all that data between those devices just so i can do the same things i can now but less efficient (and with still more drawbacks)
No one will use Gmail if they need to download GB's of Junk they haven't cleared in 10 years to find an email for 2 months ago, not to mention that any type of sharing will force major duplication as well as require you to download and generate new copies with each person you want to share it with.