Carboxylic acids and their derivatives on reaction with hydroxylamine $\ce{NH2OH}$ and hydrazine $\ce{N2H4}$ give hydroxamic acids and acid hydrazides, respectively, through acyl nucleophilic subsitution.
Why don't they give the same reaction as aldehydes and ketones (i.e. removal of $\ce{H2O}$) giving formation of oximes as the acids also have oxo ($\ce{=O}$) group?