The thing is: she actually
did help create some of that value.
Before she got there, Carol Bartz was the chief. She had royally FUCKED UP the relationship with Alibaba. As a result, BABA refused to go public until it got back the shares from Yahoo; and, in fact, Jack Ma took Alipay out of the consortium in a fit of anger, without even consulting Bartz.
In short: the relationship was in dire straits.
Mayer comes in, smoothes things over, strokes Ma's ego and next thing you know, Yahoo gets to keep most of the shares, BABA goes public and Yahoo's value skyrockets. Mayer had absolutely everything to do with this.
Edit: for more reading: https://techcrunch.com/2010/09/12/bartz-in-a-china-shop-has-...