Why is the gravitational microlensing method valuable for discovering certain types of planets?

Answer

It can detect planets far from their host stars or even free-floating planets

Microlensing relies on a rare alignment where a foreground system acts as a natural magnifying glass. This geometry allows for the detection of planets that are distant from their star or even rogue planets unbound to any star.

Why is the gravitational microlensing method valuable for discovering certain types of planets?
astronomystarsexoplanetsdetectiondiscovery methods