Placed graphic displays and exports outside stroke.
A placed graphic will show onscreen and in graphic exports like PNG and JPG outside the stroke when the stroke is aligned to the inside of the frame. InDesign 2020 and earlier. To reproduce: place a graphic, add a stroke to the frame, align stroke to inside, export the page to jpg or png. A thin portion of the image is visible outside the stroke. Obviously, this is most noticeable when the stroke is thick and white.