Why did slaves have braids?

In the time of slavery in Colombia, hair braiding was used to relay messages. For example, to signal that they wanted to escape, women would braid a hairs...