A directory is a special kind of file which simply indexes to other files and, therefore, acts as a "folder" (coining Microsoft's term) containing other files.
It is simply a way to organize files under the "Divide and conqueer" paradigm, to ease usage to users.