It's a couple of things. Intentional walks are kinda dumb and teams have learned that it's not smart to give away free bases, even with hitters as feared as Judge. The other thing is that while Judge is probably in the 99.99..th percentile in terms of raw/in-game power all-time, he does whiff and strike out quite a bit. Bonds didn't, he was complete in every possible way, elite eye, elite in-game power, elite contact rates. He was also someone you didn't want on base, earlier in his career, as he was a very good runner who would steal bases. lol
Even before his peak steroid era years, Bonds was putting up 18-20% BB rates, with strikeout rates no higher than ~14%, with ISOs in the .300-.330s range (Judge is currently at .388 this season). So when Bonds entered peak steroid final boss mode, he had the best eye in the game, didn't strike out, and when you actually pitched to him his ISOs were in the .400s-.500 range. Completely unbeatable.
Of course, with Judge, he's facing the best pitching ever with insane velocity and spin. So being the mountain of a man that he is, he chases barrels and hard contact at all times to maximize his power at the expense of some more swing and miss.