Hello Martina Johnson,
Form follows function. Just like Susan D’Alonzo explains, your body will adapt to the work you put it through, resulting in a stronger body to handle what it needs to do.
Yoga will both, challenge and stretch you, which works together for improving strength in the muscles. The muscles are attached to the connective tissues, so, they all get stronger.