Why can you pull out a scalar of a dot product, when it only applies to one vector?

Update: For example,
(* is dot product, not multiplication here)
why does 2v * w = 2(v * w)

but 2v*2v does NOT = 2(v *v)
2 answers 2