'Ali (May Allah be pleased with him) said: The Messenger of Allah ﷺ prohibited a woman from shaving her head. An- Nasa'i.
The Prophet Muhammad was known for his kindness and compassion towards all people regardless of gender or social status. He wanted everyone in society to be treated with respect and dignity which is why he prohibited women from shaving their heads - a practice which could potentially lead to humiliation or disrespect towards them in public spaces. This prohibition also serves as an example for us today that we should always strive to treat each other with kindness and respect no matter what our differences may be.