I'm not entirely sure of the history behind Nevada's gambling. It is obviously libertarian on gambling and prostitution. The Wild West generally had a pretty libertarian bent, in general.
I do wonder if the folks who originally made these laws envisioned the potential for business. Were they thinking like entrepreneurs? Or were they just degenerate gamblers?