 The people in Jesus' day had created some lesser kind of oath, one that they didn't really have to follow, one that wasn't necessarily binding, one that wouldn't put them on the hook. You can swear by the temple or by heaven, and there's enough separation between those things and God himself that you can make an oath or a promise and break it.