How epidemics grow randomly to produce the standard SIR model