Land-use planning

Why might an authority inspect a project before issuing a completion or occupancy-related certificate?