@Lawrence is correct here regarding how Auto ISO works.
Program Mode is fine when your shooting conditions are perfect, or near perfect, but not for something like moon shots. That kind of contrast-y shot is going to require YOUR brain being in control, not the camera's because the camera's...