Bent geometry lets the bond dipoles add instead of cancel.
Each O–H bond is polar because oxygen attracts the bonding electrons more strongly than hydrogen. Because the two bonds point in different directions rather than directly opposite one another, their dipole contributions do not cancel. Water therefore has a net molecular dipole.