An Emacs buffer holds text or editor state, while a window displays a buffer. A buffer can exist without being visible, and several windows can display one buffer. Managing one object does not automatically manage the other.
Advanced Text-Fu · Lesson 11
Emacs Buffer Navigation
Learn how to switch and kill Emacs buffers while splitting, selecting, and closing display windows.