The Security Code is needed for any immobiliser-related operation. Normally you get it from the Car Pass or ask the dealer: this function extracts it straight from the car, cutting the dealer out. It is the mandatory first step before programming keys.