AI datacenters have much larger cooling needs and often use generators
Ahem.
https://www.politico.com/news/2025/05/06/elon-musk-xai-memph...
And you'd need an insane amount of solar panels to actually recharge those batteries in any kind of reasonable time too, so you expose yourself to a massive risk if you had two out of power events within say 12 hours. So you'd probably build all of those batteries and solar panels but you'd still need to have emergency generators ready to go anyway.
Critical loads require generators, batteries don’t cut it. Data centers want the most reliable backup power they can with the longest runtime. Battery storage density is not high enough to back up a 500MW+ data center for any length of time without a comical amount of batteries.
When the NEC allows critical, equipment, and life safety branch at hospitals to be backed up with batteries and solar panels, battery storage will be at a point where battery backup of data centers is feasible. Right now it isn’t.