Why does Yahoo! buy failed startups? It’s the only way it can get good developers

Why does Yahoo! buy failed startups? It’s the only way it can get good developers