The problem with papers is, that in case your research does not turn out to have the results it needs, then it might be difficult to publish. So the "cool, I need only a paper" can turn out into a nightmare as well. At least with peer-reviewed papers it can take 6 months to wait for feedback, so that is why I have to admit I am surprised as well, that so many students are able to publish in such a short time. I know too many people, where it takes ages. (PHD level.)
The thing is, you can always turn a dissertation into a paper, but the other way round not so much. I wrote a dissertation and as the results were good, we published it as well. It was the same for the other students in my working group. At the same time, nearly no one of us finished the paper before the dissertation. It was usually the other way round or at the same time. But then we did not publish in the top journals, there the process takes longer. (And for answering some questions, I conducted my research project in a quite privileged position, where we fully integrated in a top-rated research group with access to a lot of experiences scientist, we could ask for help. Otherwise, there would have been less student written papers in that group.)