It doesn't. That's why I thought the hydrogen bonded to the carbon. Carbon has 4 valence electrons. Allowing the carbon to bond to the hydrogen next to the oxygen results in the carbons octet being fulfilled. 4 electrons shared from the surrounding H's, 4 valence electrons in the carbon, for a total of 8. (Edit- this isn't accurate either. I'm on my phone at the moment and will respond on my pc when I get home.)
Afterwards, I figured I was wrong, which is why I commented again with the numbers of bonds each of the atoms in the molecule can make.