The job of the military is to impose the rule of those in power on the subjects.
The military is sanctioned to kill people and has all the tools and power to do that.
The life of a soldier rotates between boredom and violence. In battle the soldier is often fighting for his life. In peacetime the soldier is often bored.
This shows why the military has to have strict oversight. The combination of power over life and death, the tools of killing, and boredom can make for a pretty dangerous combination
Here is a group of soldiers, in a time of peace, who are cleared bored.
One day they are given a prisoner to kill. This one is unusually interesting. He reportedly has the power to do miracles. And it is said that he claimed to be the king of the Jews.
This assignment, gruesome as it was, was going to have some entertainment value!
Mark reports Mark 15:16 "The soldiers took Jesus into the courtyard of the governor’s headquarters (called the Praetorium) and called out the entire regiment. 17 They dressed him in a purple robe, and they wove thorn branches into a crown and put it on his head. 18 Then they saluted him and taunted, “Hail! King of the Jews!” 19 And they struck him on the head with a reed stick, spit on him, and dropped to their knees in mock worship. 20 When they were finally tired of mocking him, they took off the purple robe and put his own clothes on him again. Then they led him away to be crucified."
Of course, they had no notion it was the King of Glory they were taunting. That each one of them would appear before Him after they died. That He - the righteous judge of heaven and earth - had the ultimate power.
They didn't know any of that.
They were just bored.
And had an unusually interesting prisoner...