If Lemmy were to integrate with Matrix the storage costs would explode exponentially, the two systems are notoriously heavy! (Lemmy is consistently the only service that fills more than 1 GB of storage in my browser and refuses to clean up).
XMPP is the true inheritor of IRC when it comes to standard, federated, self-hostable chat / messaging.