Since we know what water is made of what is keeping us from creating a machine that can make water?

We know what applepie is made of, but we cannot make an apple pie without the ingredients.

The same thing applies to smaller things like the molecules of hydrogen and oxygen in the water.

That said, we do know how to make water from other ingredients using chemical reactions.