Question

I know how oxygen hybridizes to make a water molecule, but I don't know why.

When I write out the energy diagram for oxygen in its ground state I see that there are two unpaired electrons there, why aren't they used to bond with the two hydrogens?