The story of Adam and Eve is written as a picture story. It was written thousands of years ago when the writer did not know about the way that the Earth and all living things had come about.
Most people do not take the story of Adam and Eve as something that really happened. Rather, they think of the Adam and Eve story as a way of introducing the idea of good and evil, a property that is more or less unique to people.