Yeah, source code editors tend to do that. They integrate with external tools that expect to read those files, so if they don't overwrite them, those tools would run the wrong version. It would still be better if they didn't.
Text editors shouldn't do that though. And those shared-view editors that don't have the concept of saving have this very relevant drawback.