The shoot is used to collect sunlight for photosynthesis, so the genetic programming (as I like to call it), told the plant to grow toward the light, and the light was upward. The roots are programmed to obtain nutrients from the soil, like water, so the roots were growing downward to collect more water.