It's because the botnet pages themselves contains data which Google considers spam (unrelated topics, link farms, ad pages, porn etc).
Google then lowers the rankings (or removes the blogs from Google). All they have to do is run an update script to update all the domains with the blog link, and Google lowers their rankings.
Is it because botnet attack makes your site slow, and make it lose google ranking ?