From what I can tell it's because some of these "edge" service providers will expect you to give them a WASM binary instead of a PHP script.
The other caveats about "edge" throughout this discussion aside, if I needed to do this, I'd try to write something in Zig or (gag) JS or something else that compiles to WASM directly rather than writing a script for an interpreter that runs under WASM.