So, in the first century, if a person was excommunicated or shunned, they had no where else to go. They were forced to look at what they had done, and find a way to make it right. The alternative was unthinkable. Therefore, excommunication and shunning was a powerful wake-up call, and had the ultimate end of restoration and reconciliation.
HOPE THIS HELPS!!