One answer is that the town's elected officials...
One answer is that the town's elected officials thought that the project served a public purpose and that the various subsidies and favors were worth the price. But they may or may not have thought this.