There is a very simple exercise you can do to illustrate the continuity in the Superficial Back Line myofascial chain between gastrocnemius and hamstrings.
Muscles of the Lumbar Spine of the Trunk
Structural groups of muscles largely determine functional groups—that is, the structural location of a muscle largely determines its mover function.