I think you're misunderstanding what I mean by "quality" in this context. It's not quality as in something like meat, it's quality as in "a quality education". Does it go above and beyond vs. do the bare minimum to address the scientific question proposed by the authors.
Something can appear to be of very high quality and yet still be completely fraudulent. This occurs in countless fields; art, counterfeit money, deepfakes, etc.
Scientists are attempting to address fraudulent research in other ways, but peer review is not the best means for it and it should not be thought of in that way.