If by 6, you mean six valence electrons, it's because of this: Oxygen has six valence electrons (six on the last shell of its Bohr model) and on a Lewis Dot Diagram, there are six dots, which represent valence electrons, around the atomic symbol for oxygen - O.