That's odd considering cannabis use was shown to decrease REM sleep and thus memory processing and consolidation.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8116407
Although most recreational cannabis is high THC : low CBD, there is ever-growing demand for more balanced strains. There's no telling what the average looks like in black and grey markets (although high THC is certainly the default assumption given its intoxicating effects). Before we make blanket statements about the impact of cannabis on sleep, we should probably seek to answer questions like, what is the overall impact on REM sleep with cannabis that has a 4:1 ratio of THC to CBD or lower?
I don't think there's reason to expect any relation between REM sleep and the outcome to hold.