Jesus was hanging on the cross and prophecy was being fulfilled!
(Amplified) Psalm 22:16-18 “For [like a pack of] dogs they have encompassed me; a company of evildoers has encircled me, they pierced my hands and my feet.
17I can count all my bones; [the evildoers] gaze at me.
18They part my clothing among them and cast lots for my raiment (a long, shirt-like garment, a seamless under-tunic).” 

  Dogs were not household pets – so this prophecy was against the on-lookers as they taunted Jesus as He was dying on that cross.
  To crucify anyone, Roman soldiers did indeed pierce the hands and feet, as they nailed the condemned man to the cross.  Psalm 22:16 (prophecy);
Luke 23:33 (fulfillment)

  Shame!  Shame to be crucified for any reason – for it indicates true guilt and death is the verdict.
  The body is stretched out on a cross – and the rib cage would be clearly seen by the on-lookers… “I can count all my bones.”  Psalm 22:17 (prophecy) Luke 23:33 (fulfillment)

  Exposed!  “They look, they stare at me…”  Shame!  Shame to be stripped of one’s clothing and all privacy stripped away – for all to see.
  The Roman soldiers divided the garments of Jesus among them and decided who would get His robe by throwing the dice.
  Psalm 22:18 (prophecy); Luke 23:34; Matthew 27:35 (fulfillment)

  Shame!  Shame that the Son of God was exposed, ridiculed, derided.  Seeming defeat for Jesus because the Pharisees had plotted the death of Jesus early on in His ministry.  (Matthew 12:14)

  Shame!  Shame that the enemies of Jesus seemed to have won their battle and that God had afflicted His Son!
(NASB) Isaiah 53:4 “…Yet we ourselves esteemed Him stricken,
Smitten of God, and afflicted.” 

  For the followers of Christ, what can we know about Jesus on the cross?  
He won!
(KJV) Isaiah 53: 10-12 “Yet it pleased the LORD to bruise him; he hath put him to grief: when thou shalt make his soul an offering for sin, he shall see his seed, he shall prolong his days, and the pleasure of the LORD shall prosper in his hand.
11He shall see of the travail of his soul, and shall be satisfied: by his knowledge shall my righteous servant justify many; for he shall bear their iniquities.
12Therefore will I divide him a portion with the great, and he shall divide the spoil with the strong; because he hath poured out his soul unto death; and he was numbered with the transgressors; and he bare the sin of many, and made intercession for the transgressors.” 

  The living God of the Bible had a plan and a purpose for His Son ~ for you!  What was seeming defeat and shame for Jesus dying on the cross ~ was for your salvation!

(NASB) Romans 8:28 “And we know that God causes all things to work together for good to those who love God, to those who are called according to His purpose.”