The idea was to put off running apt-get update until a package is actually installed/updated. That way you don't pay the time penalty for it if your package installations end up not running due to some sort of conditional logic, or just an early test failure