Homosexuals are less likely to reproduce. Groups of individuals with more producing/providing adults relative to dependent children have a better chance of out surviving and competing groups with less optimal child/adult ratios during times of famine. Homosexuality could actually be selected for genetically, and definitely as a cultural behavior during times of scarcity and could be considered a viable prophylactic technology as it existed in antiquity and today.