Tax breaks are a standard way for individual states to tempt corporations to build factories and establish headquarters in their state. The Arizona government obviously feels that the jobs created and revenue flowing into the local economy, as well as the halo effect from having Apple building stuff in their state, is a net positive for them.
You're most likely trying to lecture some socialist hipster. Not someone who actually has taken a Business 101 college course.
Yes, this is how business deals are done. If the State of Arizona deemed that the "deal" would be detrimental or too expensive on their end, they would not have made a deal with Apple at all.
Apparently, AZ came to the conclusion that giving Apple a tax break will pay dividends in the long run and will more than pay for itself. This, of course, is a calculated business risk. But this is how many business deals are made. The socialist hipsters don't quite get this.