When H2 gas is collected over water, why is there water vapour in it? How does water vapour get into the hydrogen gas collected?

didnt the hydrogen bubble through water? Wasn't the water at the opening of the tube?