How man came to exist is one of those things we can never really know for sure one way or another. Clearly humanity or the universe didn’t just “randomly happen.” We can speculate endlessly on how everything came to be.
Much more interesting to me is the question of ego — how did man’s ego come to be? Why is mankind the only species with ego? Clearly it is one of the things that sets us apart from the other occupants of this planet, and it’s the one imperfect element in an otherwise perfect universe. Did man’s ego evolve from some distant animal ancestor? Obviously not. Where did it come from? No one seems to ever think of looking into this question.