The problem is, there is something dramatically worse than the US presence in Afghanistan and it's waiting in the wings. What do you think will happen to the people of Afghanistan when the Taliban regain control after the US leaves?
The civilian deaths in Afghanistan are almost exclusively the result of the US attempting to keep the Taliban at bay, trying to keep them from de facto enslaving the entire population under an extreme theocracy and revoking all human rights.
There are few groups more draconian, backwards, or more oppressive on this planet than the Taliban. They will rule Afganistan again in the near future, they'll reclaim all of the country rapidly. The only thing holding them back from mass-torturing the entire country again has been the US. There is nobody else willing to risk so much to try to stop the Taliban, nobody else will lift a finger to do anything about it as the US leaves.
[1] https://watson.brown.edu/costsofwar/costs/human/civilians/af...