Well, it could be that the writer wants to explore different character traits. Maybe they want to see how Naruto would react in a situation that goes against his moral code, or how Hinata would handle such a betrayal. It's a form of character study through a very controversial and unorthodox plot. However, this doesn't mean it's a positive or well - received concept in general.