Since #323 (src: Add support for AI files (Adobe Illustrator)), file-type looks for the text "Adobe Illustrator" in PDF documents and if it matches, it assumes it's an adobe .ai file.
It seems that normal PDF created with Adobe Illustrator will contain the text "Adobe Illustrator" quite a few times in the metadata too, even though they are not Adobe Illustrator files.