Specifying file types for an assignment is a good way to make sure that all submissions for your assignments meet your requirements. This is a good way of streamlining grading. For information beyond this article, visit Moodle documentation here.