The "simple" answer is "markets aren't like textbooks".
Consumers are lazy and greedy.
The side effect of which is not-strict-enough regulation of negative externalities. In a perfect world, people would care about the downstream environment impact at least as much as they do about their time/money. But, they don't.