I think that a whistled melody over a guitar harmony was chosen to evoke a sense of loneliness, following the trope of a lone wanderer playing guitar (or mandolin, or banjo, etc) to themself or a small party around a campfire. It's just a very western-y scene.