@JGoldman10,
No it doesn’t. It goes back a long way, to when we were all Catholics. It’s a reference to the Virgin Mary, a contraction of By the lady.
Why do you want to know this?
I thought you were trying to avoid mild oaths.
This sounds like you taking delight in them.
It’s another example of prurience.