How does a nappy work?

We cut open nappies and found a white powder called sodium polyacrylate. When water is added to this powder it turns into a gel and absorbs a very large amount water. That’s the secret to keeping babies dry.