"The establishment were shit scared of him and did everything in their power to keep him out."
Extreme simplification.
In reality the large influx of new young members gradually drifted away when they sussed Corbyn wasn't interested in the EU.
Loads of infighting behind the scenes as well...