When we swear by someone, we appoint that person as witness of the promise and the judge if I break it.