It can[0], it's just that the partition holding 1TR and the second-stage bootloader (which is almost but not quite macOS) isn't overwritten. Just like how PCs that store UEFI variables on the SSD don't overwrite those when wiping the OS (as OS installers are now smart enough not to wipe those).
1: https://support.apple.com/en-us/HT211983 (specifically, "Or use a bootable installer")