Well, even if they have never lived in the wild, this is something that they do by instinct. In fact, it is their only way to communicate since they cannot talk. Most of the time, they hiss because they are afraid and they are trying to defend or protect themselves by frightening you.
Their momma taught them..lol
Idk, instinctual ?