The word "du" is a contraction of the preposition "de" and the article "le". In French, "de" is used to indicate possession or origin, and "le" is the definite article for masculine singular nouns. Therefore, "du" is used to indicate possession or origin of a masculine singular noun. In this case, "devoir" is a masculine singular noun, so "du" is the correct form to use.