What can make water and icing sugar icing grainy in a chemical way? and how does this work?

I am unsure on how icing sugar and water can work together to form an icing i feel like it has something to do t=with the starch but I’m unsure and would love some help on this topic.
Johnson M Changed status to publish