Maybe it mistook the cobra for a small child ...
SnakeDoc (no relation)
liberal logic... makes sense to you