There, it's as simple as it gets: infection is modeled as a stochastic process in which one susceptible plus one infected person are transformed into two infected people. In the large number limit, using the regular "mass action" kinetics, the rate equation for this process turns out to be the logistic equation.