The Christian commandment "do not swear and do not take God in vain" directly intersects with the Buddhist thesis about getting rid of attachments. Epictetus and Seneca said the same thing. The laws of Manu also have this rule.
Out of good intentions, a person makes promises that he can't fulfill later. In fact, this person is a coward who is afraid of upsetting people, or a drug addict who craves a moment's pleasure. All his motives are very good, but since he is a coward and a liar, he does not have the strength to fulfill his words.