The leg-yield is one of the first lateral exercises to be introduced to a horse, teaching it a simple yet valuable lesson: to move sideways away from leg pressure.
This basic is later built upon in the shoulder-in and haunches-in.