How did this happen when you only changed the aperture and the camera automatically changed the shutter speed? One of several things might have happened.
- There is no such thing as perfect exposure. For a given meter reading the correct shutter speed for a specific scene and a selected aperture will probably fall somewhere between two available shutter speed settings. For instance, in your photo with f/22 (which is actually f/22.6) as the selected aperture the meter may have said the correct shutter speed should be approximately 1/69. But your camera has no 1/69 second shutter speed! It must choose either 1/60 or 1/80. It chose 1/60. When you stopped down to f/14 (which is actually f/14.3), It may have wanted a shutter speed around 1/181. Since there is no 1/181 shutter speed available for your camera, it chose 1/200 rather than 1/160.
- The clouds behind you may have shifted just enough to make the scene darker at the time the picture was taken than at the time the meter reading was taken. If the meter reading was almost exactly between two available shutter speeds, then even moving your head to cover slightly more sky while revealing slightly more of the dark top of the building directly behind you may have been enough to sway the meter from rounding up instead of down. Not to mention that your framing was slightly different in each frame, which likely affected the meter reading.
- The difference between the theoretical aperture values a camera/lens is set for and the actual aperture value that setting gives you is not exact. The same is true of shutter speeds. This is even when the actual target number of f/22.6 for a setting labeled f/22 is taken into account. The design of the iris in that diaphragm may give you an opening that equates to f/22.4563793.
For the third photo you increased aperture by 1 1/3 stops from f/14 to f/9 while increasing the shutter speed 1 1/3 stops from 1/200 to 1/500. The exposure is the same as the second photo as can be seen in the photos.