This is very interesting considering in ancient Greece it was the opposite. Having soldiers being gay was said to improve morale and make the soldiers fight better, as their partners was fighting together with them. More information on the subject here: https://en.wikipedia.org/wiki/Homosexuality_in_the_militarie...
Seems we're constantly in a pendulum in terms of sexuality, what's ok or not.