by chance

入门 (A2) neutral

Not planned, it just happened.

"I met my old teacher by chance at the market."