The High Priest also people under a Nazarite vow, could not touch dead people or enter the home of a dead person. Priests were allowed to touch a dead body or enter their home if it was a close relative.
Source: Leviticus 21:11 (High Priest), Numbers 6:6 (Nazarite)