Identical twin studies have shown it is not genetic.
You are right. It isn’t genetic and even the most generous studies have shown that predicting it between identical twins is no better than flipping a coin. There is far more correlation for IQ and even adultery than homosexuality.