Think about inductive and resonance stabilisation of the cation. Start by comparing the ketone to the amide - what is it about that N atom that stabilises the +ve charge?
The order of acidity in this series parallels the order of electrophilicity of carbonyls and can be explained using the same logic. So to approach from a different angle, why is a ketone more electrophilic than an amide?