Dear student,
In the electrolysis of water, water get decomposed into hydrogen gas(H2) and oxygen gas(O2).
2 H2O(l) → 2 H2(g) + O2(g)
Since in a water molecule(H2O), 2 atoms of H and 1 atom of O is present.
By volume, amount of hydrogen is double the amount of oxygen in a molecule of water.
Hence,in the electrolysis of water the volume of H2 gas collected over cathode is double the volume of O2 gas collected over anode.
Regards