They attach them to Chinese swords, for reasons that differ depending on who you ask, including:
-distracting the opponent from the blade itself
-counterbalancing the weapon
-having a cleaning rag always available for the blade
-ID badge by color