But He was God, so how could he suffer? Your comment makes no sense.
He's God, so He could certainly do it if He wanted to. He chose to suffer to pay the sin debt on behalf of those who would receive Jesus as Savior and Lord. The perfect way for both justice and mercy to be carried out.