How does UV Mapping happen after setting map to a texture?

How does simply setting the texture on this cube’s material.map parameter, automatically make the perfect uv mapping?

https://threejs.org/examples/#webgl_geometry_cube

It doesn’t make a perfect mapping - only if you want the texture wrapped in that specific way, because the UV values for built-in geometries are pre-calculated and always the same :eyes: