It seems like cannabis must have been a domesticated crop that was shaped by humans for a long time before rewilding. The probability of a wild plant hitting the right chemical formula seems way too low. Probably started with something roughly adjacent and then humans took it from there. Weird that we have no idea who did it.