And I'm particularly not saying that there is or must ever have been some particular "legitimate government" for every piece of land. I'm just saying that when the US went in and kicked out the Taliban, they definitely weren't making things worse from a lot of perspectives. They ultimately weren't able to solve all the problems, but that is a different question. The 20 years have largely been better than the years under Taliban rule.
It's not that the borders don't make sense, it's that the area as a whole is hard to rule and it's hard to pay for that ruling. Currently one could argue that the medieval kind of "political technology" used by the Taliban is superior to the democratic political technology, for this very reason.
The Taliban's win condition was basically to inflict just enough damage the former condition would be impossible. Their troops are not far removed from criminals themselves: they loot, rape and torture.
It were Britishers who started this mess 140 years ago, and they must be the ones to fix this.