Probably used first as a weapon, the cane took on the symbolism of strength and power and eventually authority and social prestige.

Spiritually, it also came to signify self-flagellation.