It is just best practice to terminate files with a line break.  Some tools will emit warnings (or run into issues) when processing source files that do not end with a line break.  Some apps use it as a way for testing if a file is plaintext or binary.