How does smoking cause anxiety?

In general, it doesn't, it reduces it. I believe, though, that it can cause panic attacks in some teenagers. And if an addicted smoker stops, he experiences anxiety while he's going through withdrawal.