Do both these planets just happen to be passing in front of the star then, because they would typically be a mile or so outside the image at that scale wouldn't they?
The parent star is masked off, and I’m pretty sure it’s an image generated from multiple telescopes, “interferometry”, as others have mentioned.
https://en.wikipedia.org/wiki/Very_Large_Telescope
Unclear if they use the auxiliaries as part of the process.
So, there was no need for the planets to pass in front of the star to be detected.
In fact, if you click on the picture in the article, you see two planets and the star quite a distance from each other. Those planets are much further from their star than any of the (known) planets in our own solar system.