This is something which only seems distressing to Westerners because I've noticed one thing in East Asian literature (especially in the works of Miyazaki ) and is the idea that sometimes good people do bad things, and sometimes bad people do good things.
This was a discussion I had with one of my nieces after watching the movie Princess Mononoke, when she expressed her dislike of the lead female character and I reminded her, yes, she is doing a bad thing but she's not evil. She does good things too. Yes, she's poisoning the creatures of the forest with her industrialization efforts but she gave a home to displaced sex workers and leprosy victims! The hero of the movie is trying hard to be noble but brutally kills several men in the film. The main character (Mononoke) is intent on brutally killing another character in her attempt to save the forest creatures. The film is full of these types of characters who commit e veil deeds but aren't even and balance that out with good deeds.
I think Western society is most uncomfortable with that type of thinking thanks to the Judeo-Christian traditions that set up this dichotomy of good and bad only, and people are only one or the other.
My own opinion has been informed by the concept they : Intent is not magic. It's the impact of what a person actually does thst makes what they do good or bad, not what they think they're doing.