Common causes of this include using a SIM card with a pin number configured or your phone being in flight mode. On Windows Mobile before the SIM pin has been entered or when the device boots in flight mode the software cannot verify your SIM card and therefore must lock the device to prevent unauthorised use. While this is not recommended it can be prevented by disabling the "Device Lock" feature in the "SIM Protection" settings screen.