Regarding chrome, browsers are basically operating systems nowadays. A standards compliant HTML5 parser is at the bare minimum millions of lines of code. Same for the renderer and Javascript engine.
Even after closing all tabs, since tabs (and extensions) are basically programs in this operating system.