Files are slightly different, actually, now you mention it, but this is as designed.
If you attach a file to a post, it isn't actually embedded into the post content the same way that an image is. A message must contain some sort of text content or BB code to be valid; an attached file adds neither of these things.