The point is that most utilities like transport infrastructure and sewage treatment benefit local residents and the broader society directly. Datacenters are not utilities in the same way and have a much narrower social impact.
chatgpt has 900M weekly active users, so a significant fraction of the world population. Given that the user base probably skews towards rich countries, its proportion among the local population is probably even higher. On the other hand what do you think is the proportion of people who take trains, especially in the US? What about steel plants?
So if I drive to work then it's fair game to be NIMBY when they want to build a light rail station? You might say "but even if you don't use it, it's reducing traffic so you're still benefiting!", but if those kind of arguments are allowed, you can make similar arguments about how AI will make the whole country richer because of increased productivity or whatever.