That's definitely true. However, the potential traffic volume between two locations is not always large enough to support a direct flight. That problem exists for every transport system and the solution is always the same: traffic streams that do not support direct connections are bundled and than routed to hubs where they can be combined with low volume traffic from other places. A hub airport is actually a kind of distribution center. So, transfer traffic is not so much necessary as it is unavoidable.