Carbonic acid is a dibasic acid. One molecule of the acid forms two hydronium ions when ionised in water. As dibasic acids have two replaceable hydrogen atoms, they form two types of salts when reacted with a base. They are acid and normal salts.
Ionisation of carbonic acid:
Reaction with base:
Hydrochloric acid is a monobasic acid. One molecule of the acid forms one hydronium ion when ionised in water. As monobasic acid has only one replaceable hydrogen atom, it forms only normal salt when reacted with a base.
Ionisation of hydrochloric acid:
Reaction with base:
Thus, carbonic acid gives an acid salt but hydrochloric acid does not.