You can see the ad networks as opportunistic parasites that take advantage of over-specialization in ad-land. Fancy creatives that have next to no tech knowledge get their budgets gobbled by people with some measure of tech capability and no ethics. The 'outsource everything but your core competency' only works when you can trust everyone that you are outsourcing to.
The lack of quality inventory is also something of a canard. Direct buying and selling requires ::effort::, thinking, spending on expertise, and salespeople. Dumping ads into a network that quotes absurd numbers and promises everything requires pressing a button and going to get coffee.
It's like the Somali pirates -- they identified a bunch of ships that had no defenses and corporations that would barf out millions of dollars when you point guns at a few sailors. A $500 weapons budget could hold a multi-billion dollar cargo hostage. It's similar with ad piracy.