Understood - but He also omitted it from the 10 Commandments and there’s no way He didn’t already know that Sodom and Gomorrah were just around the corner.
He also didn’t mention about overdosing on heroin, driving while under the influence or even having slaves. That is the difference between a Christian who has the Spirit within them guiding them and the world looking at do’s and don’ts. We don’t have to be told every single thing. The first four Commandments are built upon respect for God and the last six are for the respect for our fellow man.