I was on the Wikipedia page of Tartaric Acid, and I noticed that its solubility in water varies depending on whether the solution is racemic, meso, or optically active: $$\begin{array}{|c|c|} \hline & \text{solubility (kg/L)} \\ \hline \text{D or L (active)} & 1.33 \\ \hline \text{DL (racemic)} & 0.21 \\ \hline \text{meso} & 1.25 \\ \hline \end{array}$$
After some pondering, I can see why the D-solution and the meso solution may have different solubilities; I would guess it is because of varying degrees of intramolecular H-bonding that can occur between the -OH and the -COOH groups. I would be grateful if anyone could formally justify this.
What surprised me, however, was the difference in solubility of the D-solution versus the racemic mixture. I would imagine that due to symmetry, every individual molecule of the acid in a racemic mixture would have an equal chance of being ionized/solvated as any other, as well as equal to the chances of molecules in a pure D-solution. Ergo, their solubilities should be identical. However, it appears my intuition is wrong here.
What is the reason, then, for these differences in solubility between the three types of solutions?