Because when the story was conceived there were other gods, the snake may represent evil but it more so represents the “evil of enlightenment brought about by others whispering tales” or the pill of other gods.
Judaism was unique in that it was monotheistic as well as intolerant of other gods which was kinda very much against the grain in those times.
Christianity took the torch from them started a new fire.