Opacity affects each item individually, so during the transition, you have an Image with a certain opacity and a Rectangle behind it. Since the Image has its opacity transition to zero, you can see through it to the background Rectangle behind it.
Using layer during the transition we can combine the entire item into a single surface and animate its opacity as a whole.
BUG: 410313
FIXED-IN: 5.17.0