Local companies don't have to internalize their costs, and few actually do, but they tend to more often because the owners live there and they have to show their face in town, and their kids play with other kids.
In 1983, NASA invited Canada to fly three payload specialists, in part because we had contributed the robotic arm that is used on the shuttle.

