Weren't there social protocols of war and honour that would prohibit sneaking into a city and murdering soldiers/civilians in their sleep?
A. Because they won. Not great at self-reflection, these mythical heroes.
B. It was, sort of, later on, and dependent upon your perspective. Especially by the Romans, when they claimed Trojan descent.
There is, of course, the famous Roman saying 'Never trust a Danaan, even when bearing gifts' which comes from Laocoon's speech, shortly before the sea serpent eats him.