Why the atmosphere became oxygenated: A proposal