What it costs the audience

38%56%6%Bytes over the wire, gzippedruntime JS [2500]theme CSS [3700]head script [425]

Mermaid itself is not in that list, and that is the whole point: it ran at build time. Shipping it would have added roughly 400 kB to any slide carrying a diagram.