This is because oxygen (2.8.6) requires two electrons on its valence shell to attain stable configuration (2.8.8). Hydrogen (1) on the other hand requires one electron on its valence shell to attain stable configuration (2). Therefore in a covalent bond, it requires two hydrogen and one oxygen to share electrons and achieve stable configuration.