Used to think this as a grad student. Now as a professor I see how naïve this attitude is. There is so much work beyond what grad students are tasked with including getting research funded, staffed, and results out the door. Grad students are cogs in a research machine, cogs that need to constantly be readjusted and recalibrated because they are quite green (sorry, it's true) for a number of years. Most 22 year olds coming out of undergrad into a PhD program are not doing what you would consider publishable research for a number of years, and what work they do is usually heavily based on a foundation of research that was laid to get funding in the first place (usually by the professor), based on ideas that have been thought of and refined over a number of an entire research career (not by the grad student doing the "actual work"). Grad students may have great technical ability, but they have next to 0 research sense and ability. As I said, doing research is so much more than the technical aspects and writing the paper.
Grad students love to feel like since they got a paper published, that they are 100% responsible for what happened in that paper, and I just have to ask: where were you 2 years ago when I was up at 4am finalizing the Nth draft of the grant application, based on research that I have been working on since 6 years before that? Oh, you were partying, drunk off your ass at a frat in undergrad, and when I started this research project you were learning your times tables. So tell me again how you're 100% responsible for the results here, and I'm just taking credit for all you have done on your own?
Sorry if you haven't noticed this post has turned into a rant at someone I have in mind, not at you. But I just needed to say this.