Here's why:
* Silver (Ag) has a +1 charge as a cation.
* Hydrogen (H) has a -1 charge as an anion (hydride).
Since the charges are equal and opposite, they balance out, leading to the simple formula AgH.