It's not a question of being bad at distributing their own tickets. Just that some airlines -- in Asia particularly -- developed the practice of using bucket shops to sell deep discount fares because selling them directly would have complicated selling higher fares directly.
And of course the practice continues today with OTAs replacing bucket shops.