By using metadata instead of content to spot suspicious behavior, the social network can keep privacy intact.
https://www.wired.com/story/facebook-messenger-safety-alerts-encryption
https://www.wired.com/story/facebook-messenger-safety-alerts-encryption