I was thinking about tags, but maybe that does not make sense...
For HEAD it most surely doesn't, but this routine allow us to detach any symbolic ref. Through peeling that would work even if the symref refers to a tag.