In every story, your worldview will shine through. When the protagonist decides to show mercy to the evil guy, you as the author will decide if that was a naive mistake or a brave and powerful choice. When the protagonists are framed for a crime, you as the author will decide if they can work within the system to prove their innocence or if the system will only screw them over more. And what you believe about the world and about people will impact and inform those choices.
I think sometimes we call things "politics" that are inherently part of a person's story. A black creator writing about racism isn't "being political" necessarily -- he might just be writing about his own experiences. My experiences of struggling to find and keep friends and work out my feelings about that boy I kind of like won't be labelled political, but his experiences of the same darn thing are going to be seen as "political" because racism is a part of every piece of his life.
I also think this is super subjective. Media that you disagree with is going to feel much more "political" than media that matches your own worldview, as the casual assumptions the story makes clash with your view of how things work on a basic level. Something that feels "too political" to one group might feel like "a good story" to another. Which also means that the more overt you are, the narrower your audience -- a story about a frog falling in love with a toad when this is forbidden by frog law is gonna resonate with most folks on some level, but a story about a lady from a conservative household falling in love with another lady immediately cuts out anyone who's not on board with LGBT+ rights.
But sometimes like.... that's the point? The point is not to make your story something that literally everyone can agree with, the point is to communicate the thing you wanted to say, to explore the experience that you wanted to explore, and to share your feelings.
One of the reasons I love Jesus Christ Superstar more than any other passion story (despite it being less like... theologically consistent with the teachings of my faith than most other versions) is actually that it made the story political... and in doing so, made the whole story more human.
That said, I do think it's easy for stories with political themes to fall flat when they're about someone else's story, a story that's foreign to them. Like, writing an on-the-nose racism metaphor when you've never really run into racism is gonna feel off somehow. On the other hand, a story about the rise of fascism and the corruption of the youth sounds extremely preachy and political, but someone writing that story because of their own horror of watching their friends fall into an ideology that makes them different, less kind, more afraid -- that's going to be a very human story.
Politics are in everything, so it's only natural for some stories to have them -- and some stories will have A LOT of them -- but no matter what, if your story doesn't come from inside you, it's not going to ring true.