Many countries don’t use a lot of electricity, especially those where the grids are spotty or in poor repair, or the overall population is small. Even without the AI garbage, I’d expect large tech-sector companies to use more energy than many countries.
(In other words, the headline for this was really poorly chosen. “Microsoft and Google pour more electricity into AI than 100+ countries use” might have gotten a bit closer to the actuall point, if it’s actually true.)