HCl is a strong acid (one of the ones that we need to memorize!), so it MUST dissolve in water.
When you get to work with HCl in the lab, you will get to work with strong acids and bases quite a bit more. Until it is mixed with water, HCl (hydrogen chloride, which is actually a gas), doesn't begin to behave as an acid! We need to mix it with water before it actually "works".
So, I'm introducing this idea to you (mixing it with water), because you physically need to do that the product in real life.
===========
Water is a good solvent for many different molecules because it has the ability to hydrogen bond, it is polar molecule, and it has polar bonds. For molecules that are bonded ionically (ionicly?), it will help them dissociate readily! It can also "shield" the newly-formed ions in a process is called "solvation".
Here an example of water shielding a Na+ ion:
https://upload.wikimedia...1200px-Na%2BH2O.svg.png
These substances will all readily dissolve in water due to water's ability to "solvate" the ions.
The ion pairs are as follows:
Na+, H-
NH4+, Cl-
Fe3+, Cl-
H+, ClO3-