The snake doesn't know whether humans eat snakes or not. All he knows is that you're a giant pink monkey, but certainly BIG ENOUGH to eat him.