Am I missing something here? Notwithstanding that the nosegear ground lock pin was incorrectly positioned, the crew are onboard and the aircraft being made ready for departure so why would hydraulic and electrical selections be made such that the leg is unlocked and starts to retract?