God does not cause suffering in the world, but rather people cause their own suffering through their actions. Krishna, as the Supersoul, judges people based on their right or wrong actions, similar to how a judge sends criminals to jail. While Krishna wants people to be happy, he allows suffering so people can reform, yet many do not listen to his teachings. If everyone followed Krishna as devotees, there would be no more suffering in the world and all would be happy.