In a fortunate manner.
It is (or was, etc) fortunate that.
In a profitable manner, in a way that achieves profit or gain.