How know that water is not simply a mixture of hydrogen and oxygen?
Because water has physical and chemical properties that ARE DISTINCT from hydrogen and oxygen.........
What is the normal boiling point of water? What are the normal boiling points of dioxygen; of dihydrogen? (You will have to look these up!). What are the densities of each substance under standard conditions? Different physical and chemical properties specify different chemical substances.