So that a person should not eat the bread of shame, but rather enjoy the fruit of his labor in his battle with the evil inclination

כדי שלא יאכל האדם נהמא דכסופא, כ"א יהנה מפרי עמלו במלחמתו עם יצה"ר
Shiurim in this topic
759. Creation, the Purpose of Darkness, and Illuminating the World הבריאה, תכלית החושך, והארת העולם