Yeah Raven it's an ancient practice, shun, exclude, octracise. Ostracise comes from the practice in Ancient Greece of writing a person's name on a pot sherd, an ostracon, and counting up the votes to decide to exile an unpopular citizen from Athens for five or ten years.
People separated from their community in ancient times could die. It's still a punishment for those seen as not worthy to be included in a family or community. A primitive practice from a primitive time.