This is fraud not a right to repair issue.
OP isn't justifying the criminal's behavior, just suggesting that the illegal market would evaporate overnight if Apple sold these parts to anyone.
Remember, these criminals essentially get these parts for "free", they can undercut Apple even if Apple sells at cost.
And Apple never sells anything at cost.
I mean, yeah, they would be cheaper, but that's the case for anything stolen. Yet we don't have an epidemic of all shops in the USA selling stolen goods they got for cheap.
Western society is pretty conformist. Give us a legitimate way to purchase something and most of us will feel more comfortable using it. Even if that means paying more.
The people selling these boards had the market to themselves.
I didn't say anything about "right to repair" but if there were one, I can only imagine that would come with a demand that electronics manufacturers make parts available (which would obsolesce the black market).
This scam was a natural side effect of Apple completely locking down their parts supply chain. We've seen from Linus Tech Tips and Louis Rossmann that it's nigh-on-impossible to legitimately purchase parts without becoming a Apple Authorized Service Provider. Even when you've gone that far, some parts are on a one-in-one-out policy. Running a repair shop where you can't keep spares on site is crippling. And becoming and remaining an AASP is an lengthy and recurrently expensive process. None of this is compatible with those generic stalls that can replace your screen for £20, or the DIY market on eBay and beyond.
All these users want parts that Apple won't supply. This demand creates a vacuum that black and grey markets are all too happy to fill. By that point people don't care where the parts came from, as long as they do the job. I'm not defending anything here. They are stealing (and elsewhere, illegally copying products) from Apple to supply a black market demand. I'm just pointing out that leaving a demand unsatisfied causes its own problems.
If Apple just sold parts direct to market, they'd solve 90% of this problem overnight. I'd happily pay more than the Ebay crap because I'd know they were genuine parts.
Edit: Tuned.