Here when the negative charge the oxygen pulls away the H, it makes the oxygen a better nucleophile because we essentially transform water into a hydroxide and the hydroxide is a much stronger nucleophile.