Aspirin is a weak acid, represented here for simplicity as AsH. AsH(s) + NaOH(aq) -> AsNa(aq) + H2O(l) where AsNa is Na+ ions with As- ions. The sodium salt of aspirin is an ionic compound and not a covalent compound. As such, its solubility is greater. It is useful for a pharmaceutical to be soluble in water.