They did see it coming. Thus all the secrecy, and why datacenters in space have seen so much attention the past few years.
Maybe they didn't predict the magnitude and vitriol of the backlash, but NIMBY resistance to all infrastructure projects has only been growing over the years. For example, wrt solar and wind power. It was obvious data centers were going to see at least as much resistance because you need to build the data centers and more power generation.
Do data centers in space make less sense than build outs in more accommodating countries? Not necessarily. It's not an either/or thing, and it all depends on the concrete bottom line numbers. In space you don't have to worry about managing political winds at all; you control everything. More accomodating countries tend to be poorer with worse infrastructure, so there are more unknown risks. And you don't need to develop or manage a foreign workforce, which is why 100% of Silicon Valley jobs didn't instantly jump to India or Poland.
I don't understand how data centres in space make any sense at all given the heat constraints. Has there been some plausible breakthrough in heat dissipation technology recently?