Why do you think God created them male and female if His intention was for two men to engage in sodomy?  God did not create homosexuals; anatomy and physiology make it clear what God created and what he intended for them.  With few exceptions we are all designed heterosexual, each of us having anatomy designed to unite with the anatomy of the other sex.