“Several of these results were, simply put, SEO-optimized baloney.”
Search for a PHP signup tutorial and more than half of Google’s top results teach you to paste user input straight into SQL. Beginners copy that code into production. Google ranks pages for keywords and ad slots, not for whether the code is safe. The breaches that follow get blamed on the junior developer.