It is likely drawn from the superstitious Indian practice:
To any indian:what does the red thread worn on the wrist mean?
A "Kalava" is the sacred Hindu thread also called 'mauli' in hindi. It is worn while performing Hindu rituals like Yajna or Puja. It is tied by a priest on the wrists of all the people attending the prayer ceremony. Kalava is tied on right hand of males and unmarried females, and on left hand of married females. Sometimes it has small yellow parts in between the mostly red string. It sometimes has knots which are tied up while reciting Sanskrit mantras to invoke God and is worn to ward off evil from the person who wears this red thread.
It spread to Judaism and was adopted by superstitious people, just as it was back in the times of the Tosefta (see other answer).