Since inception, Amazon has achieved nearly unprecedented growth of revenue, profits, employee head count, customer base, product offerings, and just about any other business metric.
You believe all of this was achieved with mediocre talent? I doubt it, but maybe you're right. Either way, so what? If Jeff Bezos has figured out how to create an innovative, world leading, ultra high performance business with mediocre talent, his accomplishments (vis-à-vis Amazon) are even more admirable.
Given that they can only hire mediocre tech talent, this speaks to perhaps the success of the HR management that they were able to build what looks like a market leading offering in AWS (the scale of which is absolutely huge - all built by these mediocre engineer!)