The phrase
"mysterious ways" is used to describe an event or situation that is difficult to understand or explain. It implies that there is an unseen or unknown force at work, causing things to happen in a way that is not obvious or easily comprehensible.
Full definition