He put the cotton bud in a dish soap which is very 'smooth'(Very Less viscosity). And as the dish soap is less dense than milk, it floats. Then it spreads sideways (Very less viscosity)carrying the dyes with it.
I think he avoided using water instead of milk because water would dissolve the dyes fast.