I think the implication isn't merely "valid file" but rather it's "valid file of a particular type". The example given is that an empty file is a valid executable. It might also be a valid CSV file but not a valid Excel file.
I know what you mean, I also took a double-take when I read that sentence. But when I read a bit further I decided it was just poor phrasing initially.