Something I've observed (and I'm a total amateur who happens to like reading a lot of myths and legends from different cultures) is that the more 'underdog' a culture is, the more likely they are to celebrate a lying trickster figure. This is ESPECIALLY true of cultures that emerge among enslaved people or folks who find themselves repeatedly thrashed by nature or foreign armies.
It's easy to denounce trickery when you have the power to get what you want through force. When you come from a people who have nothing, cunning is the only tool you have, and the best will use it well.
it's always kind of funny to me when people insist that honesty is a virtue and you should always tell the truth because being good at lying is something that's been almost universally celebrated for thousands of years by pretty much all of humanity. like there are literally multiple folk tales and legends throughout history and across cultures that involve the hero tricking their adversary in order to win, and it's usually considered a disadvantage to mythical creatures such as faeries that they can't say things that aren't true.
I know that a lot of my former English professors would argue that, by its very nature, sci fi isn't sci fi if it isn't being used as an avenue to critique and examine modern problems. Historically, the genre has been used as a vehicle for authors to tackle touchy current subjects in such a way that allows them just enough distance to avoid backlash, censors, or criminal repercussions, depending on the author's time/place.
A great example of this would be the original Star Trek series. It was a really, really big deal that Uhura was black and Sulu was East Asian and they worked on the same crew as white people. And then the show took it a step further by having whole episodes dedicated to discussing how stupid racism is... using the medium of aliens, like one alien being ostracized from his people because instead of having the right half of his face black and the left half of his face white, the left half of his face was black and the right half was white.
I would argue fantasy--the typical vaguely YA knight in shining armor magical sort of fantasy--has historically hewn closer to escapist fantasy than sci fi. If a fantasy novel has something to say, it usually has more to do with the human condition than a specific societal problem. If that's not your jam, romcoms epitomize escapism.
also absolutely hate when people say "this is set a million years from now and there's still racism and homophobia? #problematic" and then you read it and it's a scathing and concise yet meticulous examination of our current views on race and gender and sexuality. you don't understand what the point of science fiction is. escapism is not the pinnacle of the written form that all genre fiction should aspire to. you're annoying me