(i) -NH2 group of aromatic amines strongly activates the aromatic ring through delocalization of the lone pair of electrons of the N-atom over the aromatic ring. Due to the strong activating effect of the -NH2 group, aromatic amines undergo electrophilic substitution reactions readily than benzene.
(ii) Due to resonance, the lone pair of electrons on the nitrogen atom in CH3CONH2 is delocalized over the keto group.
As a result, electron density on the N-atom in CH3CONH2 decreases. On the other hand, in C2H5NH2, due to + I effect of the ethyl group, the electron density on the N-atom increases consequently, CH3CONH2 is a weaker base than CH3CH2NH2.