Comment by conscion
My guess is that they are end-to-end encrypted. And because of Facebook's scale that they're able to probabilisticly guess at what's in the encrypted messages (e.g.a message with X hash has Y probability of containing the word "shoes")
That seems unlikely given that they use the signal protocol: https://signal.org/blog/whatsapp-complete/