This is a complex question -- complicated enough that I wrote a book about it: Every Page is Page One: Topic-based Writing for Technical Communication and the Web from XML Press (https://xmlpress.net/publications/eppo/).
At the heart of the confusion is ambiguity about what the word "topic" means.
For a long time, we used the word "topic" to mean a short self-contained piece of information on a single subject: a help topic, for instance. A topic was a unit of consumption. A recipe is a topic. A Wikipedia entry is a topic. A manpage is a topic.
Meanwhile, Robert Horn developed a theory of information mapping that claimed you could improve writing by breaking a document up into sections of one of six (originally seven) information types: Procedure, Process, Principle, Concept, Structure, and Fact. In information mapping, a document was a map consisting of blocks of different information types. This was not quite modular writing -- it was more a matter of modular design -- but it introduced the idea that a big document could be made up of smaller discrete pieces. (https://en.wikipedia.org/wiki/Information_mapping)
Around the same time, John Carroll of MIT did a series of studies on how people use information that showed that the kind of systematic technical manuals commonly written in the 80s did not work very well because people did not use them systematically. Instead, they tended to hop in and out of different information sources driven by their immediate tasks. Carroll developed a theory of information design called minimalism. Among other things, this theory called on authors to create smaller units of information, to design each unit with the expectation that users would access it at random, and to focus on experimentation and error recovery rather long study sessions.
Studies at Xerox PARK then led to the theory of information foraging, which says that people look for information the way wild animals look for food -- following information scent and trying to minimize the expenditure of calories. This theory corroborated Carroll's findings. (https://www.nngroup.com/articles/information-scent/)
The Web greatly enhances people's information foraging and changes the way people work and learn. Stack Overflow is a prime example of this trend. It increases the importance of creating small independent topics, which my book calls "Every Page is Page One" (EPPO) topics. It also diminishes the priority of creating textbook-style technical manuals. This approach is one meaning of "topic-based" writing, and it merely means writing short independent works rather than long integrated ones.
At the same time, the proliferation of product variation and the shortening of product release cycles left tech comm departments struggling to keep up. Thus there was an increasing interest in reusing existing content as much as possible, which led to the development and increasing adoption of DITA. DITA-based its data model on information mapping, though it reduced the base set of information types from six to three: Concept, Task, and Reference. (DITA allows you to create more types via a process called specialization.)
Here's where the confusion started. While Information Mapping called these units "blocks," DITA decided to call them "topics." As with information mapping, a document in DITA is a map. However, in DITA, a document is a map of topics, not blocks. In DITA, therefore, "topic-based authoring" came to mean writing discrete reusable parts of a document in isolation. While a topic in the Every Page is Page One sense is the unit delivered to the reader, a topic in the DITA sense is the unit the writer writes, and often it has to be combined with other units to make something useful to the reader.
For instance, in the EPPO sense, a recipe is one topic. In the DITA approach, though, a recipe is made up of one concept topic (the introduction), one reference topic (the list of ingredients), and one task topic (the preparation instructions) joined by a map. (Not every DITA practitioner would take it this far, but it illustrates the principle.) Thus we have two different meanings of "topic" and two different meanings of "topic-based writing."
It would be helpful in the term "modular" was used to distinguish between these two forms of topic-based writing, but unfortunately, "modular writing" also gets used in these two distinct ways.
I suspect that this continued confusion is because, if you are doing topic-based writing in the Every Page is Page One sense, you are almost certainly not building your short articles from separately managed blocks. The people who are doing that are the ones who are assembling larger works. Both sets of practitioners use the same terms to describe what they are doing, but they are doing very different things.
I coined the term Every Page is Page One term to try to reduce the confusion, or at least to give people a way to be more specific when they use these terms.