You can view homosexuality as an identity or as a behavior.
Recently the identity option has been emphasized. Part of those is because it offers more legitimacy: if I can convince you that:
1. Gay people exist 2. I am gay
Then, my homosexual behavior is more legitimate. Without the identity, Western legal codes were able to ban homosexual behavior.