it was originally formed from "I shall warrant" and later taken as a mincing substitute for "I swear".