The Bible does not actually denounce homosexuality, but instead offers a piece of advice. It is not a good idea to lay in the bed that Man made, but instead a good idea to lay in the bed that God made. Mankind should not lay in the bed that Mankind made.
When the Bible advises that Man should not lay with Man it's actually saying Mankind should not try to make the world, but instead accept the world as it already is, as created by God. Any world that Man tries to create is flawed as Man is fallible. The world God already created, nature, is flawless as God is infallible.
Man tries to create his own world through the creation of what he calls laws, the laws created by Man do not actually exist in nature, but only in the imagination of Man. The only laws created by God are the laws of physics. God's laws are perfect while Man's laws are deeply flawed and lead to the downfall of all worlds he's created.