Why do spaniards smoke on public spaces and near children?(like restaurants,bars, public streets with tons of people..etc)

Im traveling in barcelona and madrid. Im from south korea. Lovely country and all, but i cant wrap my head around the fact that SO MANY PEOPLE here smoke while walking on public sreets

I even saw mothers smoking while holding a toddler in one hand!

Ive been to a lot of different countries(but its my first time in europe though) and this is a shock.