Greek mythology often follows little to no logic in regards to the consequence of actions committed by characters.
No. God, I am sick of that. What kind of people do you think the Greeks were that they would write stories of literal nonsense, especially when we get most of our story telling techniques from their theaters. The Greeks were a very orderly society, and their stories reflected that.
No, what the Greeks had was a different set of values that was applicable to their time period. Lets have an example: Whats worse, trying to bang a your friends spouse while the they're away, or being a moocher?
By our laws of morality, it's be the former. Obviously, you're trying to induce a personal betrayal, while the latter is just being annoying and lazy.
But the Greeks had the law of Sacred hospitality. They had that law because there were no hotels and many people didn't have homes, so when there were travelers, the travelers were obligated to behave in a person's home, while the people were obligated to treat their guests kindly. Even if these people were personal enemies, these laws applied. Because the consequences of doing otherwise could mean rampant, unaccountable murder. And it was VERY hard account for if a traveler murdered the host or the host the traveler. To make sure that people weren't just allowed to murder, society produced the social norm of Sacred Hospitality, which placed great emphasis on respecting your guests. That's why we have many stories where travelers are angels in disguise, that reward people who abide by sacred hospitality and punish those who don't, or why there is a story in the bible where a man offers his daughters for sex because he has to honor guests. They had have stories that placed Sacred Hospitality as tantamount, so as to discourage something they can't account for otherwise as much as possible.
Which isn't a problem for us. We have hotels, and strong forensic techniques that help us account for murders that happen. Sacred Hospitality isn't needed anymore. But it was for the ancient people.
So when Odysseus comes back home to find that his friends have been sitting around in his house trying to fuck his wife, he has them all murdered in a rage. Most modern readers initially assume he killed them because they were trying to fuck his wife. But no, it's because they violated sacred hospitality, which is a far more egregious crime.
Which might seem strange because of the cultural difference, but it's not nonsensical, just highly antiquated. It has it's own sense, it's own logic.