We know that a cube has six sides but we are only giving three sides here. The reason is only three of the six are visible with our camera placement. If we were to animate the camera or the geometry, then we would consider adding additional sides.
We set the normals as geometric normals, namely, ones that are perpendicular to their respective sides.