Here's why:
* "Devoir" (singular) is a masculine noun.
* When you make it plural, you use the plural form "les devoirs".
Note: Although "devoir" is masculine, the word "les" (the plural definite article) is feminine. However, the gender of the noun itself determines the overall gender of the phrase.