Or look at it this way:
Give every vertex a number. (Gets messy real soon, but this is what Blender does)

The UV-map is like a lookup to see what color each vertex has. It doesn’t matter where each vertex in in 3D space, the color stays the same and all points between vertices are interpolated,