Most charging cables get treated more like a power cord on a construction site - they don't just get plugged in and hidden behind a TV so the quality of the shielding and connectors is paramount to withstand the twisting and strains
On the other hand, I have never had a $10-15 Anker or some other brand cable fail on me without serious abuse. As a consumer, I'll happily pay the extra few dollars for the expectation of durability, a warranty of some sort, and the knowledge that the cable should Just Work with most of my devices, even if I know that the price is way out of proportion to the materials involved.
Can't speak for all other consumers, of course, but I would expect that many have figured the same thing out over the years of purchasing Micro USB/Lightning/30pin/etc cables.
Overall, I don't think it's entirely unfair to expect people to pay $10-15 for a quality cable, especially since these modern cables are often expected to carry significant amounts of power.