For better or worse, number of publications is increasingly seen as a metric for productivity and competence in some fields and countries. Depending on where you are (geographically and discipline-wise) it is more about producing and publishing papers than about having something novel and relevant to show, unfortunately.
As an early career scholar, it is important to find out if you are in one of those places where you should be producing papers instead of producing knowledge. If that is the case, try to learn what are the tricks used by people around you and emulate them. As much as I’d like to tell you to not do that, it may be the only way to stay in the game in the long run. How can you produce good and relevant research if you have been forced out of academia by the “publish or perish” system?
If it is the case that you are in one of those environments/disciplines where publication counts are inflated, you need to play along if you want to stay in the game. You need to strike a balance between doing the really interesting high quality stuff and doing the cookie-cutter low-hanging-fruit run-of-the-mill papers that increase your publication count.
Some people who publish a lot are truly doing cutting-edge research and publishing a lot due to that. Not everyone is that lucky or that good. If you look closely, many of those publishing a lot are compromising in terms of quality and impact. They may have their own tricks, perhaps involving dubious practices like fishing for significance, for example, or perhaps they are just really good at slicing the sausage really thin and turning one good study into a dozen papers. If your discipline in your country is one of those that only carescare for quantity (some places reward mediocrity in large numbers over geniality), you will only harm your career prospects by going against that system. Learn from how your peers do it, at least for the moment, so that you can get tenure. Once your place within academia is secured, then you can worry about the rest.
Lastly, once you have your research group and your collaboration networks, then you can further inflate your publication counts by co-authoring with your colleagues, PhD students, and post-docs, but that is something further down the road for you.