By using the filenames it sets the (mostly correct) tags for song titles and artists. More details on how it works can be found in the source code.