The further away you are from systemic and institutional structures that would reinforce cultural norms, the more likely you are to experience and develop your own in a way that may run contrary to what's commonly accepted.
And, in that era, there was no place further away from society than out on the range doing cowboy stuff. That's almost the point of the entire Western genre.