"Dinitrophenylhydrazine does not react with other carbonyl-containing functional groups such as carboxylic acids, amides, and esters. For carboxylic acids, amides and esters, there is resonance associated stability as a lone-pair of electrons interacts with the p-orbital of the carbonyl carbon resulting in increased delocalisation in the molecule. This stability would be lost by addition of a reagent to the carbonyl group. Hence, these compounds are more resistant to addition reactions."
Basically lone pairs keep it stable, removing these to add 2,4-DNP is too difficult