In scripture, God uses trials and tests to remove sin and shape people so that we can better represent Him to the world. This is our true purpose.