Trees also generate oxygen, which can be an issue in cities since (BBC Science Focus):
> "A human breathes about 9.5 tonnes of air in a year, but oxygen only makes up about 23 per cent of that air, by mass, and we only extract a little over a third of the oxygen from each breath. That works out to a total of about 740kg of oxygen per year. Which is, very roughly, seven or eight trees’ worth."
You might think the problem would be minimal due to atmospheric circulation, but like with smog accumulation, some weather patterns can lead to problems:
"(2021) Declining Oxygen Level as an Emerging Concern to Global Cities"