They can get in moods sometimes, and it's usually just random hissing and nothing more. I noticed it can take them awhile to get out of it too, whether from being annoyed or frightened, so she was probably still "in it" when you were holding her later.
I always remind myself that they're still animals, not robots, and can act however they want. Even the ones who are docile and sweet 99% of the time can randomly get into a mood, and hiss or even try to tag out of the blue.
My dumeril's boa, who has always been a pet rock who just gets in a position and chills with me when I have her out, was just chilling with me on the couch one day (with nothing in particular happening) as usual. I simply go to pet her mid-back, and she flings her head around 180 and attempts to seriously tag me. But I dodged it LOL. She tagged her own back right where my hand was a second before, one of her teeth hooking onto a scale. I just went back to holding her, she didn't act out of the ordinary... And it's never happened again!