Well, someone needs to treat the hydrogen sulphide with excess methanol over an aluminium oxide catalyst. I suppose a robot could do it...
For a non-life explanation, you're really looking for something that could plausibly happen in (abiotic) nature, not an industrial process.