Question: why ozone layer is formed in stratosphere?
Answer: So the ozone layer is formed in the stratosphere, because that is where the solar radiation is attenuated enough to make ozone at the pressure there, and destroy ozone at a constant rate, that leaves a steady state level of ozone. Ozone made / drifting higher, is ripped to oxygen atoms quickly.