Because the taxpayers of Texas benefit by having jobs move to Texas. Even with the breaks its a net increase in tax revenue.
It might make business sense and it might be a good thing to do, but if government provides incentives that are coercively funded, it isn’t a free market.