How does a water droplet "know" the path downhill. How does electricity "know" the least resistance path.
All this language is just confusing. In a chemical gradient sense, molds and yeasts solve tough problems all the time, but it's not much more than physics