if you look at the mini histogram on the right, you are using a strong display stretch - this is making the image of the moon onscreen look OK when it is in fact badly under exposed. It's far enough under exposed that all the pixels in your selection area are falling below the 10% black threshold, meaning that they are ignored for focus calculations, leading to a score of zero.