It only works if they are self contained without access additional resources on the file system, as the executable file is kept alive until process termination.
Now if the process tries to access some datafiles that changed contents during the upgrade, it might just crash and burn, eventually corrupting data in the process.
Firefox has entered the chat
That's a very Windows-centric point of view. Programs on Linux can be updated without closing them. You get the new version when you restart them.