God made man a personality. He presented him with options and alternatives. He informed him in advance of the consequences of his actions. He set before him light and darkness, bitter and sweet, life and death. God did not create sin.
Sin is the result of man's own choice.
He chose not to listen to God but to self. He chose to supplant God's will with his own will. The suffering that results from sin was not caused by God. It is a part of the package deal that Satan offered. Man bought it, lock, stock, and barrel.