Calling it “inert” is misleading. It’s involved in all kinds of chemical reactions that are essential for life (and lots of non-biological reactions, too). It’s only inert in the sense that most living things can’t use it directly from the air and rely on nitrogen-fixing plants and bacteria to make it into molecules we can use.