The nitrogen-to-oxygen evolution in galaxies: the role of the star formation rate