It's the same reason that a radiator has long coils, to increase surface area compared to volume to let heat out, and because the leg is like a pendulum, the longer and thinner it is at the extremity, the more energy-efficient it is to swing.