The reason is that oxygen atoms have a greater mass than hydrogen atoms by 16 times. This is because hydrogen has only one proton and no neutrons, so, its atomic number and mass is 1. While oxygen has 8 protons and 8 neutrons, so its atomic number is 8 and has a mass of 16.
Therefore it takes 16 hydrogen atoms to equal the mass of one oxygen atom.