I would guess that many nitrogen fertilizers are high in ammonia and/or ammonium salts, and some percentage of these ingredients is released as ammonium gas shortly after fertilizer application to the soil. Also, soil micro-organisms can oxidize ammonia/ammonium to N2O, a greenhouse gas.