The camera was in wide/tracking AF mode. Used for tracking moving subjects.The focus in the second image was supposed to be at the fence but very clearly wasn't.This is very strange because the focus of the second image is at the fence, so quite far away in the image. But this area is not very sharp compared to the near foreground.
What focus mode were you in? The EXIF isn't saying.


