Since genes are the result of a lottery, they are indeed morally meaningless. Genes are internal natural resources and should be treated like external natural resources (gold, oil, etc.). To get full ownership of scarce and useful resources, one has to share their fruits.