Because DOMPurify is not perfect. Due to some problem of HTML parsing, there were some ways to bypass it: https://research.securitum.com/mutation-xss-via-mathml-mutat...
Having a builtin XSS sanatizer means it could always use a single parser to prevent such bypass.