All the molecules have O atom with lone pairs, but in H2O the H atom has no vacant orbital for π bonding. That's why it does not have any π bond. In all other given molecules, the central atom because of the presence of vacant orbitals is capable to farm π bonds.