Some genetic conditions are recessive in that you need two copies of the gene for it to be expressed. You also have spontaneous mutations which occur at conception, where both parents lacked the gene. You can also have a condition called a mosaic disorder where the defect occurs sometime during development and only some of your genes are effected.
In other word, if homosexuality were genetic, it would be rather rare.