The temperance movement was global in scale and existed independently of racist and nativist political factions. That’s not to say that those groups didn’t overlap at times, but the reality was much more complicated than you present. See https://en.wikipedia.org/wiki/Temperance_movement for more background.
Also, for long time, it was accepted to drink in work, leading to injuries with serious consequences.
Contemporary society is much better regarding all those, so we kind of forget how ugly things often were.
I'm just surprised how seldom this connection gets mentioned. It seems that, having repealed prohibition and decided that it didn't work, we to place it in the "bad things" column, and are very happy to tie it to other bad things (like the mafia). While suffrage of course lives in the "good things" column. But forcing things into black & white doesn't help us see clearly, and the reality of temperance / prohibition was much more complicated.
No, it really is not.
The reason why they made it illegal was mostly anti-immigrant racism. If this surprises you, see https://www.history.com/news/kkk-terror-during-prohibition for confirmation.
And history repeats itself. Racism was also one of the main things fueling the drug war. See https://www.aei.org/carpe-diem/the-shocking-and-sickening-st... for more on that.