Plants suck up nitrogen from the dirt with their roots. It's not from the air. Bacteria in the soil help make the nitrogen good for them.