Homosexuality (homo translates to 'human')is a natural ebb and flow that human evolution employs, as one way, to control the growth in population.
It occurs on a basic level, just as it does throughout animal and plant species.
It really has little to do with the actions that come from same-sex interactions; it has most to do with nature saying we need to slow the growth of a species down.