As it happens/happened formal
This is a phrase expresses coincidence, it can also be used to point out the surprising side in a true matter. Besides those usages, the phrase also works as a connection to the thing someone has just said.
I went to my grandma's house to look for my cat. As it happened, the cat was in my grandma's care.
I was intending to quit the job. As it happened, I was fired !
You are searching for shoes ? As it happens, I am wearing it now.
The teacher said this question was the trickiest one. As it happens, i have already solved it.
The husband wanted to check his wife phone out of curiosity. As it happened, he found out her secrets.
As it happens, I agree with what you just said, boss.
Do you have any excuses to the wrong doings you have caused ? - As it happens, I have no excuses.
To be surprised by some sudden occurrence
To greatly surprise, shock, or confuse someone
Used to express surprise
You need to conjugate the verb 'happen' arcording to the tense of the sentence.
This is a very common phrase. It has no originality as it was used for a long time.