There really needs to be a "the architecture of open source applications" type writeup about Blender.
However it is that it is architectured internally seems to have helped it grow over time and not collapse under the weight of 30 years of hacks and poor decisions.