Hamas clearly wanted publicity. Not only were these public executions - they allowed photographs to be taken. Most of the images are too gruesome to show.
Obviously these public executions do nothing for the Palestinian cause in the international court of public opinion, but they do illustrate why Hamas has such a stranglehold over Gaza.
One of the recurring questions throughout this war is: How much support does Hamas actually have? Well this ruthless display explains why there are so few dissenting voices.?