The idea behind public executions is to deter others, though it's not at all clear that they do. But nowadays, as a result of the internet, it is not just the Saudi public that sees them and this reinforces international perceptions that the kingdom is barbarous.