There are lots of different types of academic papers, including review articles, novel ideas, etc. While the types of papers varies across a wide range of topics, many academic papers comes from finding something where you can legitimately say one of the following things:
- I figured out something interesting that is not yet known/published;
- I can do things (slightly) better than they are presently done;
- I applied this broad method to this special case and came up with this interesting result;
- I abstracted from this special case to this broader theory/method.
It is great that you are getting excited by reading these research papers, but if you want to publish your own work then you need to be on the lookout for interesting ideas, questions, etc., that are extensions of what are in those papers. For example, if a paper raises an interesting question that is not in the literature, maybe you can ask that question and figure it out. Similarly, if you see some aspect of a method that might be done differently (and you think that might be better) then have a go at it and see if you can do something slightly better than it is done in the literature. You can write an paper where you show how a general theory/method reduces down in a special case, or you can write a paper where you extend a theory/method to greater generality than it is presently applied.
When we read papers we are often trying to teach ourselves an area of practice. An inquisitive researcher usually starts playing around with the problems they are reading about to try to learn about them. Many academic papers come about because the researcher is playing around with existing methods and procedures and they start asking questions that are not answered in the papers they are reading. For every five or ten cases where you play around with a problem you may find that one particular idea/case emerges that you pursue further and it leads to a publishable paper.