As an atheist, the first humans were black actually. Migration of humans up north and east caused genetic changes, so the further up north or south u go, the more white people on average theoretically would be. That's why Scandinavians and Japanese people are on average a lot more white, less uv exposure = less need for darker skin