It was part of a complex storyline to add drama and test his resilience. Sometimes, such events are used to create intense moments for the character.
The reason Wolverine was crucified in the comics was likely to raise the emotional tension and show the lengths his enemies would go to stop him. It also gave him a chance to demonstrate his indomitable will and fighting spirit.