Vim by default doesn't remove trailing white space. So it's probably a plugin or some `.vimrc` setting that is executed on save.