Through the afflictions, God is refining us, which means we are made pure, clean, and beautiful that we can be called the heavenly citizen. Since we became unclean because of our sins, we are purified and refined through the afflictions on this earth.