Nootropics is a very vaguely defined categorization. There are certainly vitamins and amino acids that improve brain function (especially in cases of deficits) that are underexpressed in modern food because of our optimization for size, shelf stability and appearance.
However, the idea that there could be chemicals like psilocybin or modafinil or piracetam that used to be in our produce seems highly implausible.
I wonder if this is a new phenomenon or just an undiagnosed one.