“Snap” is most often a code word meaning “I have no idea how to read a dog’s communication* so I didn’t see this coming.”
*There are typically three reasons for the inability to understand dog body language and behavior: laziness (this isn’t rocket science, anyone can learn if interested), incapacity (as in mental or intellectual disability), and plain old stupidity (possibly intoxication-induced).