It used to be "That's my bag," which was later shortened to, "My bag." I think that "my bad" is folk pronunciation of this slang expression. PAT