Well, to be fair, I've known a handful of people to get PhD dissertations out of what effectively was "running the machine" (using the instructions that came with it) and "generating data-- lots of data" (using someone else's protocol) and "analyzing data" (with the help of an advisor or blindly following a stats program).
And yes, some of my peers and I have, in point of fact, had the same criticisms of THOSE dissertations.
Some labs also operate such that EVERYONE that helps prepare a publication (via group meetings where it is edited) gets an authorship. It just really depends on the lab's culture.
Okay-- with that said, my 14yo did a research internship last summer. She specifically WANTED to get a feel for what being a lab PI was like, and had a mentor who embraced that and gave her a lot of oddball one-off tasks so that she could see it both good and bad. So things like dealing with IRB forms, snafus related to protocol approvals and grantsmanship, etc. etc.
Yes, she spent time harvesting data from raw subject recordings, and entering it into databases and spreadsheets, but she also got to look for patterns, help design additional elements of the investigative tool, etc.
She also wrote the M&M section of a paper-- and got herself a
real authorship.
How typical is that?
Not very-- for the reasons that you listed, Val. DD was clearly in the top 10% of the students that we saw presenting their internship work at the capstone experience later in the summer, and these are SUPER-competitive internships. So competitive that pretty much
no student outside of the top 20% of his/her graduating class even has a shot at being interviewed, and of the 800 or so students who applied, just 116 of them got internships last summer. DD, by virtue of her age (13 at the time), was
ineligible to apply for all but about 20% of them, which had no age restrictions.
I don't say that as a shameless brag, but to indicate that probably
most of the kids in those internships were MG+ to begin with, and that a fair number of them were HG+. Of the three other students that I know well enough to say, one is clearly EG, and the other is HG, and then there's DD.
This isn't most high school internship programs, though. Er-- well, maybe it is. I guess I don't really know. Given the big deal that one faculty member made of a (unsufferably preening) young man when introduced, gushing over the fact that he DESIGNED his own experiments, and was (gasp) getting a PUBLICATION out of his summer.
Well, yeah-- so did my kid, and three years younger than this youngster, and she seemed to think that was why MOST of them were doing internships to begin with.

So anyway, it may be that DD's experience was not terribly typical, and I suspect that this may be so, in fact. It's possible that faculty mentors who have been at this a while learn to winnow the wheat and chaff and offer a different kind of experience entirely to those students who are actually more capable. That's my suspicion.
What I actually find
more objectionable is the practice of "science fairs" that have as an unspoken, unstated expectation-- that participants will have been "mentored" through a project by a university scientist or industrial contact that pays for supplies, sponsors the research effort, etc. etc. Kids who
have all of that stuff at their disposal probably aren't the ones that NEED the money from a scholarship. {sigh} The kids who live rurally, etc. and have no contacts in their lives who are practicing scientists are the ones that I
wish science fairs/talent searches were finding.
This is the same problem with "identifying" high achievers who are authority pleasers, and neglecting to find 2e students or PG kids who have tuned out or turned to behavioral issues because of boredom.