In a fluky way; with unexpected luck.
By chance; in an unplanned way.
In an incidental manner; not of central or critical importance.
Parenthetically, by the way.