Can't determine from EXIF what metering
mode was used. I suspect it might be spot or centre weighted with a sufficiently small centre. Pointed at tree trunk versus pointed at sky = vastly different exposures determined by camera.
To pull the details from the dark one, search the forum for "Contrast Mask". The technique is a little advance to state in simple steps - but maybe if you're coming to one of the
PS workshops MattK would gladly show you how it's done.