Why is earth's atmosphere not running out of oxygen?

Trees and plants, in the process of photosynthesis, are continually replenishing oxygen into the air.