It’s not emissions only. Shaken law is a very strict safety compliance inspection that’s very expensive. It’s why a lot of great Japanese cars come over to the states with low miles. Shaken law makes them widely expensive to drive legally. Here’s an article written by a blogger from 2019 explaining it in detail.I am sure you can get a good used engine out of a Japanese junkyard just like you can here.
The myth they perpetuate is that in Japan they scrap more cars at 50K because emissions are stricter. That might have been true in the 80's, but California emissions are stricter than Japan's, and have been for a while.
If you believe your JDM engine had only 50K on it, that would have to do with the seller only choosing engines from low mileage wrecks, not some intrinsic value of getting it from Japan, just like you can buy a low mileage engine from a wreck here if you look in the right place.
https://www.readyseatbelt.com/blog/2019/1/16/bi-annual-mandatory-shaken-car-inspection