This is enforced by all of the HCP registration bodies (GMC for doctors; NMC for registered nurses and midwives; HCPC for allied health professionals). It's also supported by the NHS Litigation authority (the body who'll pay out for negligence claims, or defend those in court), and various medical protection organisations (the legal organisations that represent HCPs in court cases). The MPTS (the tribunal service that holds hearings in fit-to-practice cases) also strongly recommends that HCPs apologise in full.
In England and Wales we have a bit of law ("The Compensation Act") which means an apology outside a court for something that went wrong isn't an admission of liability, which makes it a bit easier for HCPs and their employers to apologise.
I've collected a bit of information here: https://medium.com/@dan.bealecocks/advice-to-doctors-about-s...
If, god forbid, our son had not recovered, it would have been a different story, there would have been anger to vent and likely a court case.