For that A-pillar, it's possible the sunroof leaked water which ran forward to the A-pillar collecting there & rusting it out. Or the past owner had the windshield replaced and they did a poor job and/or the windshield gasket is leaking allowing water to sit at the bottom of the A-pillar.

It's a minor issue I had with my old Blue Montero that Russell now has.

HTH