A datacenter complex provides basically none of those things to a state, beyond capital in the form of taxes. But if the state gives tax breaks, then there is no benefit to the state for having a giant warehouse draining its electricity supply and/or polluting its air.
Per $ spent, data centers are one of the worst "job creators".
This was well known before the AI boom - see this study from back in 2016: