Dear student,
Electrovalent compounds conduct electricity as they are made of ions.
HCl is a polar covalent molecule and in an aqueous solution it dissociates into ions which conduct electricity.
Movement of the ions generate electricity so as both the compounds are present in aqueous form, both form ions and hence conduct electricity.
Regards,