The bans on smoking in bars came about because the workers were exposed to second hand smoke. Instead of having your attitude and just working someplace else if they wanted to avoid smokers, the nannies just banned the rest of the population from smoking. If there were a big demand for non-smoking bars, that would have been a great business opportunity if the free market were allowed to operate.
The bans on smoking everywhere came about because the majority rules.
I was born in 1940, almost everyone smoked and they smoked everywhere. This continued for many many years.
Then things began to change to what we have now. Majority still rules but the majority doesn’t like to breathe smoke when they go about their daily lives.
This is not rocket science.