The Roman consul had his son beheaded for disobeying orders. The Amsterdam Admiralty commissioned the painting to hang in its headquarters. (It’s now in the Rijksmuseum.)
The painting carries two messages. First of all, insubordination will not be tolerated. Second, decisions must be impartial.
Be glad you live in the 21st Century, not in the 1660s.