I’ve always assumed it was a result of either the development company or their general contractor going out of business / running out of budget before completion; and that, when construction resumes, it’s because the site has been liquidated and sold at auction to a new developer.
Other times, buildings (usually commercial) are left 90% finished for years at a time—clad and insulated, but not wired or finished inside. I assume this these buildings are actually as finished as they’re going to get, and are for sale, waiting for an initial owner to decide how they want to finish them (instead of having to rip out and redo the previous interior and exterior), and they just aren’t being publically advertised. They still look kind of like blighted abandoned buildings, though, and kind of destroy the character of a neighbourhood in a similar way to the half-built homes.