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.
A lie can be considered as a situation where love was promised and there was an intention to make some illusion a reality, but this did not happen or actions in this direction were not taken.
A public promise in front of strangers is a great tool for motivating a person. It is easy to deceive yourself or your loved ones. It is difficult to deceive many people in public and at once.
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.