To Cool is to Accrete: Analytic Scalings for Nebular Accretion of Planetary Atmospheres