You can only use threats of shame and ostracism to change behavior within your own community. Those sufficiently outside your circle are immune because they don’t care. The result is that in some cases people who are at least trying to do better end up more punished than those that don’t bother, at least in the near term.