To quote the NASA website article I cite below “no one knows for sure”. There are some best liked hypotheses, but no strong consensus on which, if any, are most true.
In short, that the ratio of the 3 stable isotopes of oxygen, 16 (~99.76% on Earth), 17 (0.039%) and 18 (0.201%) (more...