answered
Due to difference in electronegativity of hydrogen and oxygen atoms.electronagtivity means ability to attract electrons.electronegativity of oxygen is higher than hydrogen.if atoms of a molecule have same electronegativity than it will be non polar for example nitogren.lol