Here's why:
* Salts are ionic compounds formed by the reaction of an acid and a base.
* AgI is formed from the reaction of a silver ion (Ag+) from a silver compound (like silver nitrate) and an iodide ion (I-) from an iodide compound (like potassium iodide).
Let me know if you'd like to know more about acids, bases, or salts!