Yeah. One has to wonder how such creative writing would lead to the writer of the said episode to say...
What's there to wonder? Obviously, the writer(s) have poor judgement.
It's just that we differ on the exact stage of the process where they demonstrate that.