Yeah, that boss would've either been split up into phases or spread across multiple stages.
If it was phases, you wouldn't have to beat the whole boss in one go, each phase would act as a checkpoint. So it repairs the small damage if you fail, but once an entire layer gets blown off, it'll stay off.