It’s molecular shape.
When the two hydrogen atoms bond with the oxygen, they attach to the top of the molecule rather like Mickey Mouse ears. This molecular structure gives the water molecule polarity, or a lopsided electrical charge that attracts other atoms. The end of the molecule with the two hydrogen atoms is positively charged.