Why did biblical characters tear their clothes?

It was a symbolic gesture of repentance. Now that we have Jesus we need not to tear our garment anymore, but our heart unto him.
It also was an out was an outward gesture to show grief and/or "Holy" anger.