Comparing it to consulting a doctor for one's health, in which case the doctor is given the ability to heal from G-d, the same applies with most any situation in life. When one seeks the correct path, G-d will give the pertinent wisdom to those with whom he consults on the matter.
