Those aren't the same questions from the original post. You've omitted half the information given to the priest in each question.
Both questions, in their entirety, deal with smoking and praying. The subject is smoking and praying. You've reframed this as a question about smoking and a separate question about praying. That was never the case.
EDIT: minor clarification.
Why would the answer be no? Who cares if you smoke while doing a cartwheel? Who said the priest would forbid such a thing?
In both situations, a man is asking about the propriety of praying while inhaling the smoke from a cigarette. That's vital information.
The information does matter to the smoker and the priest. We're not teasting these statements for validity and we're not making our own judgements. We're examining why the priest's answer might have changed. That's all.