USB is fundamentally an electrical system that relies on voltage changes as its underlying mechanism. All cables, regardless of quality, have electrical properties such as resistance that are proportional to their length. Likewise, the signal degrades proportional to the length of the cable, so yes, the shorter the cable the better. Good quality cables help mitigate degradation and timing errors, but it still happens.
But yeah, it's definitely a cost thing.