Why do they have to be specific? Isn’t impersonating a cop illegal? Impersonating an EPA official? Impersonating an indian? Impersonating a doctor?
Compelling government purpose is an element of some of those. A couple of the things you mentioned might not be crimes anyway.