Also, it doesn't tackle spam. The concept that anyone can email anyone would probably have killed email, had it not been largely (if by no means completely) solved -- ironically, this was achieved by all but doing away with federation (email now being a oligopoly of Google, Microsoft and a few more, more or less dictating who gets to send email to whom). Finally, what I suspect was the final nail in the coffin, XMPP didn't play well with mobile (not to worry, an extension, XEP-0286, currently in state "experimental" first published in 2010 is fixing that).
EDIT: I should clarify: XMPP works quite well for private (non-federated) IM-setups. I offer this as an explanation of why XMPP isn't the interoperable email of IM across the Internet, and we instead see Facebook/WhatsApp/Slack/million other incompatible things dominating the space.
Everyone wants their product to be the new hotness. See the copying of stickers, voice messages, and payments from Chinese/Japanese messaging products. Or how Skype became a Snapchat clone.
XMPP itself is a bit of a mess, but it's a standard with a lot of adoption, which has its own value.
Couldn't believe this so I had to google it:
https://techcrunch.com/2017/06/01/skypes-snapchat-inspired-m...
Sorry for doubting you! Wow.
I guess if xmpp had been around at the time icq kicked things off things might have been different.
It offers a full social network solution (publication, comments, replies, contacts…) and modern IM (chatrooms, stickers, history management, synchronisation between devices). All in real-time, multi-platforms and fully built on XMPP :)