How is NH4Cl a salt?
This is not the correct definition of salt. The IUPAC definition of salt is "a chemical compound consisting of an assembly of cations and anions". In fact there are many salts which do not fit the definition you give.