It's rational economic self-interest. This is why zoning regulation needs to come from jurisdictions higher than the local government.
Zoning should be made on the state or county level, and for every development that's planned to be built, if it follows the zoning, approve it. Enough of this nonsense "yeah it follows zoning but I don't like it".