If you stay at the surface the whole time you can also use goggles, but if you go deeper then 2 meter you should use a mask with a nose pocket.
The nose pocket is necessary for the equalizing of the mask. During the descend you should sometimes breathe out some breathing gas through your nose. That gas increases the pressure inside the mask. As soon as the pressure gets higher then the one outside some gas will leave the mask in bubbles. On the ascend the gas will leave your mask automatically.
If you forget to equalize the mask you will get what they call a mask squeeze. Your eyes will be red and you are looking like a vampire, cause the pressure difference has destoyed some blood vessels inside your eyes.
PS: Even if you can’t equalize your mask with goggles you can atleast equalize you ears to prevent a middle-ear barotrauma (ruptured eardrum).