Explain the biological role of denitrifying bacteria in the nitrogen cycle and identify the environmental condition that promotes their activity.