GetContents for dir not returning "contents" values

Hey! I’m using the GitHub API to get files from a repository to use locally. Right now we’re using the “Get repository content” endpoint to get files from a directory, and then using the same endpoint to get individual files’ contents if we find specific files we want. I did notice that the file objects returned are mostly the same structure regardless of if you’re getting the contents of files or directories, but one difference is that, if you query a directory and a file is returned in the array, it doesn’t have the "contents" attribute set, whereas if you query for that file individually, it does contain a "contents" attribute. Is this an intentional distinction, and if so, why?