Answer:
Plants are able to produce oxygen through a process called photosynthesis, which involves using energy from sunlight to convert carbon dioxide and water into glucose and oxygen. This oxygen is then released into the atmosphere as a byproduct of photosynthesis.
While factories may produce oxygen as a byproduct of certain industrial processes, they do not contribute significantly to the overall oxygen levels in the atmosphere. Similarly, while animals do consume oxygen through respiration, they do not produce significant amounts of oxygen as a byproduct. Soil also does not play a significant role in oxygen production.
Therefore, the majority of the oxygen in our atmosphere comes from the photosynthetic activity of plants.