Obviously, I would be unhappy if someone I liked got killed.
However, if my house were on fire with 10 of my family trapped inside, and the firefighters racing to the scene accidentally ran over one family member in putting out the fire, I would not consider this to be "murder".
There are definitely people in Iraq and Afghanistan who have had family members killed, but who overall are still happy the US invaded. There was one report about a guy who had a US bomb hit his house, killing several family members, who then went to the US commander, told him what had happened, and asked that we be more careful and continue to get rid of the Taliban.
It's not like we invaded Canada. Afghanistan and Iraq were fairly horrible places to begin with (especially Afghanistan), and in a lot of ways, even at the peak of badness in each place, outside of localized areas, quality of life is better for most civilians.
The US has killed maybe 200 Afghan civilians in about a decade of operations. The Taliban would kill more than 200 Afghan civilians in a single month.
US medical assistance provided to Afghans (not injured by NATO/US), e.g. kids in car accidents, has probably saved more Afghans than have been killed by the US.
There are definitely grounds for not wanting the US to be there, but they're more "moral" or "honor" than practical quality of life, for most people.