The img
is a "replaced element" in HTML, and as such, is it treated as a character. Now in the absence of any styles, the image is aligned with the baseline of the other characters on the line.
So in other words, there is room for the descender underneath the image.

Changing it to a block removes this feature, as you noticed.