Sometimes I feel like it's a genetic predisposition for emotional compartmentalization. My wife cannot separate her personal feelings about artists from their work. She is also highly emotional and sometimes suffers from the consequences of that. I am almost the exact opposite and generally keep my emotions in check. I have no difficulty separating Polanski, Allen, Cosby, Spacey, Weinstein, etc. from their work. I don't want to meet any of them but I don't have to in order to appreciate their art.This is why you try and ignore things like that and just enjoy the entertainment they bring.
I have a surprising amount of Tom Cruise movies although I think Cruise is a pretty despicable person. I love Frank MIllers' catalog of comic work and do my best to ignore his radical political rantings. Loved the comic Cerebus for a long time all the while having to ignore Sims over-the-top misogyny and radical religious beliefs.
Just a few examples of ignoring parts of a person that makes up who they are just to enjoy the parts that aren't so disagreeable. If you don't develop your skill you have a lifetime of disappointment in people ahead of you while depriving yourself of some good entertainment. No one is perfect you'll find something you dislike in everyone as you get to know them better. George R.R. Martin seems like one of the most chill and nicest dudes around but the more I found out about his life and who he is there are things that bug me about him, but I'll always enjoy his books.
Another aspect of this is the passage of time. Most people can appreciate the artwork of Hitler without conflating it with his genocidal politics. Unlike all of the #metoo stories in our lifetimes, Hitler is just too far removed and allows us a new perspective on his life as a real person and not just a caricature of evil incarnate.