Any life form that has reached the cognitive capability to reason about itself will be amazed by the sheer "coincidence" of their habitat. "wow, isn't it amazing that our planet's atmosphere is composed of the very ammonia we need to survive in?"
No invisible hand required.
Also evolution is "intelligently selective". Surviving and reproducing is a pretty intelligent mechanism. It will find local maxima pretty effectively.