The water is in a cloud around a huge black hole that is in the process of sucking in matter and spraying out energy (such an active black hole is called a quasar), and the waves of energy the black hole releases make water by literally knocking hydrogen and oxygen atoms together.