Man was created after the animals. Genesis 2:19 is recapping, emphasizing that God made the animals “out of the ground” (as he made Adam).