Why did Mercury not appear to transit through the middle of the sun?
Mercury's orbit is inclined 7 degrees relative to Earth's orbit.

This drawing is exaggerated. When Mercury is "between" us and the Sun it might be below, above, or passing through the Sun's disc from our point of view.



Another post from Universe Today explains this also.