this question is for brilliant student .

how to increase oxygen or how oxygen increased in earth because in many years ago at past earth has only have 2% of oxygen but know it has 22% of oxygen​